Compartir a través de


Stroke.Rotate Method

Rotates the Stroke object around a center point.

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

Syntax

'Declaration
Public Sub Rotate ( _
    degrees As Single, _
    point As Point _
)
'Usage
Dim instance As Stroke
Dim degrees As Single
Dim point As Point

instance.Rotate(degrees, point)
public void Rotate (
    float degrees,
    Point point
)
public:
void Rotate (
    float degrees, 
    Point point
)
public void Rotate (
    float degrees, 
    Point point
)
public function Rotate (
    degrees : float, 
    point : Point
)
Not applicable.

Parameters

  • degrees
    The degrees by which to rotate clockwise.
  • point
    The point—in ink space coordinates—around which to rotate.

Example

This C# example applies a clockwise rotation of 60 degrees to a Stroke, theStroke, centered on a point at (600, 600).

Point theCenter = new Point(600, 600);
theStroke.Rotate(60.0f, theCenter);

This Microsoft® Visual Basic® .NET example applies a clockwise rotation of 60 degrees to a Stroke, theStroke, centered on a point at (600, 600).

Dim theCenter As New Point(600, 600)
theStroke.Rotate(60.0f, theCenter)

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

Stroke Class
Stroke Members
Microsoft.Ink Namespace
Microsoft.Ink.Stroke.Transform
Strokes.Rotate