GetViewTransform の原点を中心とする、指定した量の回転を適用します。
名前空間 : Microsoft.Ink
アセンブリ : Microsoft.Ink (Microsoft.Ink.dll 内)
構文
'宣言
Public Sub Rotate ( _
degrees As Single, _
point As Point _
)
'使用
Dim instance As Renderer
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
)
パラメータ
- degrees
型 : System.Single
時計回りに回転する角度。
- point
型 : System.Drawing.Point
インク空間座標において、回転の基準とするポイント。
例
この C# の例では、InkCollector オブジェクト theInkCollector 内の Renderer オブジェクトから取得した現在のビュー変換行列を保存し、Ink オブジェクトの中心を基準とする 60 度の回転を適用します。
using System.Drawing.Drawing2D;
...
Matrix theOldMatrix = new Matrix();
theInkCollector.Renderer.GetViewTransform(ref theOldMatrix);
Rectangle bounds = theInkCollector.Ink.GetBoundingBox();
Point center = new Point((bounds.Left + bounds.Right) / 2,
(bounds.Top + bounds.Bottom) / 2);
theInkCollector.Renderer.Rotate(60.0f, center);
...
この Microsoft® Visual Basic® .NET の例では、InkCollector オブジェクト theInkCollector 内の Renderer オブジェクトから取得した現在のビュー変換行列を保存し、Ink オブジェクトの中心を基準とする 60 度の回転を適用します。
Imports System.Drawing.Drawing2D
...
Dim theOldMatrix As New Matrix()
theInkCollector.Renderer.GetViewTransform(theOldMatrix)
Dim bounds As Rectangle = theInkCollector.Ink.GetBoundingBox()
Dim center As Point = new Point((bounds.Left + bounds.Right) / 2,
(bounds.Top + bounds.Bottom) / 2)
theInkCollector.Renderer.Rotate(60.0, center)
...
プラットフォーム
Windows Vista
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 3.0