Bagikan melalui


Strokes.Rotate Method

Strokes.Rotate Method

Rotates the Strokes collection around a center point.

Definition

Visual Basic .NET Public Sub Rotate( _
ByVal degrees As Single, _
ByVal point As Point _
)
C# public void Rotate(
float degrees,
Point point
);
Managed C++ public: void Rotate(
float *degrees,
Point *point
);

Parameters

degrees System.Single. The degrees by which to rotate clockwise.
point System.Drawing.Point. The point—in ink space coordinates—around which to rotate.

Exceptions

ObjectDisposedException Leave Site:

Examples

[C#]

This C# example applies a clockwise rotation of 60 degrees to the Strokes collection in the InkCollector object, theInkCollector, centered on a point at (600, 600).

Point theCenter = new Point(600, 600);
theInkCollector.Ink.Strokes.Rotate(60.0f, theCenter);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example applies a clockwise rotation of 60 degrees to the Strokes collection in the InkCollector object, theInkCollector, centered on a point at (600, 600).

Dim theCenter As New Point(600, 600)
theInkCollector.Ink.Strokes.Rotate(60.0f, theCenter)
                

See Also