다음을 통해 공유


Renderer.Move Method

Renderer.Move Method

Applies a translation to the view transform in ink space coordinates.

Definition

Visual Basic .NET Public Sub Move( _
ByVal offsetX As Single, _
ByVal offsetY As Single _
)
C# public void Move(
float offsetX,
float offsetY
);
Managed C++ public: void Move(
float *offsetX,
float *offsetY
);

Parameters

offsetX System.Single. The amount to translate the view transform in the X dimension, in ink space coordinates.
offsetY System.Single. The amount to translate the view transform in the Y dimension, in ink space coordinates.

Examples

[C#]

This C# example saves the current view transform matrix from the Renderer object in the InkCollector, theInkCollector, and then applies a translation to it.

using System.Drawing.Drawing2D;
...
Matrix theOldMatrix = new Matrix();
theInkCollector.Renderer.GetViewTransform(ref theOldMatrix);
theInkCollector.Renderer.Move(140.0f, 140.0f);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example saves the current view transform matrix from the Renderer object in the InkCollector, theInkCollector, and then applies a translation to it.

Imports System.Drawing.Drawing2D
...
Dim theOldMatrix As New Matrix()
theInkCollector.Renderer.GetViewTransform(theOldMatrix)
theInkCollector.Renderer.Move(140.0, 140.0)
            

See Also