Renderer.Rotate Method
Renderer.Rotate Method |
Applies a rotation to the view transform.
Definition
Visual Basic .NET Public Sub Rotate( _
ByVal degrees As Single _
)C# public void Rotate(
float degrees
);Managed C++ public: void Rotate(
float *degrees
);
Parameters
degrees System.Single. The degrees by which to rotate clockwise.
Remarks
The rotation is centered around the origin.
Examples
[C#]
This C# example saves the current view transform matrix from the Renderer object in the InkCollector object, theInkCollector, and then applies a rotation of 60 degrees to it.
using System.Drawing.Drawing2D; ... Matrix theOldMatrix = new Matrix(); theInkCollector.Renderer.GetViewTransform(ref theOldMatrix); theInkCollector.Renderer.Rotate(60.0f); ...
[VB.NET]
This Microsoft® Visual Basic® .NET example saves the current view transform matrix from the Renderer object in the InkCollector object, theInkCollector, and then applies a rotation of 60 degrees to it.
Imports System.Drawing.Drawing2D ... Dim theOldMatrix As New Matrix() theInkCollector.Renderer.GetViewTransform(theOldMatrix) theInkCollector.Renderer.Rotate(60.0) ...