Compartir a través de


Renderer.Move Method

Applies a translation to the GetViewTransform in ink space coordinates.

Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)

Syntax

'Declaration
Public Sub Move ( _
    offsetX As Single, _
    offsetY As Single _
)
'Usage
Dim instance As Renderer
Dim offsetX As Single
Dim offsetY As Single

instance.Move(offsetX, offsetY)
public void Move (
    float offsetX,
    float offsetY
)
public:
void Move (
    float offsetX, 
    float offsetY
)
public void Move (
    float offsetX, 
    float offsetY
)
public function Move (
    offsetX : float, 
    offsetY : float
)
Not applicable.

Parameters

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

Example

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);

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)

Platforms

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Renderer Class
Renderer Members
Microsoft.Ink Namespace
Renderer.GetViewTransform