使 GetViewTransform 繞著指定點旋轉指定的數量。
命名空間: Microsoft.Ink
組件: Microsoft.Ink (在 Microsoft.Ink.dll 中)
語法
'宣告
Public Sub Rotate ( _
degrees As Single _
)
'用途
Dim instance As Renderer
Dim degrees As Single
instance.Rotate(degrees)
public void Rotate(
float degrees
)
public:
void Rotate(
float degrees
)
public void Rotate(
float degrees
)
public function Rotate(
degrees : float
)
參數
- degrees
型別:System.Single
順時針旋轉的度數。
備註
以原點為旋轉中心。
範例
這個 C# 範例會儲存來自 InkCollector 物件 (變數名稱為 theInkCollector) 中 Renderer 物件的目前檢視轉換矩陣,然後使它旋轉 60 度。
using System.Drawing.Drawing2D;
...
Matrix theOldMatrix = new Matrix();
theInkCollector.Renderer.GetViewTransform(ref theOldMatrix);
theInkCollector.Renderer.Rotate(60.0f);
...
這個 Microsoft® Visual Basic® .NET 範例會儲存來自 InkCollector 物件 (變數名稱為 theInkCollector) 中 Renderer 物件的目前檢視轉換矩陣,然後使它旋轉 60 度。
Imports System.Drawing.Drawing2D
...
Dim theOldMatrix As New Matrix()
theInkCollector.Renderer.GetViewTransform(theOldMatrix)
theInkCollector.Renderer.Rotate(60.0)
...
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 並不支援各種平台的所有版本。如需支援平台版本的相關資訊,請參閱 .NET Framework 系統需求。
版本資訊
.NET Framework
支援版本:3.0