Graphics.RotateTransform メソッド (Single)
アセンブリ: System.Drawing (system.drawing.dll 内)



次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
Public Sub RotateTransformAngle(ByVal e As PaintEventArgs) ' Set world transform of graphics object to translate. e.Graphics.TranslateTransform(100.0F, 0.0F) ' Then to rotate, prepending rotation matrix. e.Graphics.RotateTransform(30.0F) ' Draw rotated, translated ellipse to screen. e.Graphics.DrawEllipse(New Pen(Color.Blue, 3), 0, 0, 200, 80) End Sub
public void RotateTransformAngle(PaintEventArgs e) { // Set world transform of graphics object to translate. e.Graphics.TranslateTransform(100.0F, 0.0F); // Then to rotate, prepending rotation matrix. e.Graphics.RotateTransform(30.0F); // Draw rotated, translated ellipse to screen. e.Graphics.DrawEllipse(new Pen(Color.Blue, 3), 0, 0, 200, 80); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Graphics.RotateTransform メソッド (Single, MatrixOrder)
アセンブリ: System.Drawing (system.drawing.dll 内)

Dim instance As Graphics Dim angle As Single Dim order As MatrixOrder instance.RotateTransform(angle, order)

回転操作では、変換行列と各要素が angle パラメータから派生した行列を乗算します。このメソッドは、order パラメータに従って、Graphics の変換行列にスケーリング行列を前に付加または後に追加します。

次の例は、Windows フォームでの使用を意図してデザインされており、Paint イベント ハンドラのパラメータである PaintEventArgse が必要です。このコードは次のアクションを実行します。
Public Sub RotateTransformAngleMatrixOrder(ByVal e As PaintEventArgs) ' Set world transform of graphics object to translate. e.Graphics.TranslateTransform(100.0F, 0.0F) ' Then to rotate, appending rotation matrix. e.Graphics.RotateTransform(30.0F, MatrixOrder.Append) ' Draw translated, rotated ellipse to screen. e.Graphics.DrawEllipse(New Pen(Color.Blue, 3), 0, 0, 200, 80) End Sub
public void RotateTransformAngleMatrixOrder(PaintEventArgs e) { // Set world transform of graphics object to translate. e.Graphics.TranslateTransform(100.0F, 0.0F); // Then to rotate, appending rotation matrix. e.Graphics.RotateTransform(30.0F, MatrixOrder.Append); // Draw translated, rotated ellipse to screen. e.Graphics.DrawEllipse(new Pen(Color.Blue, 3), 0, 0, 200, 80); }

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Graphics.RotateTransform メソッド
Weblioに収録されているすべての辞書からGraphics.RotateTransformを検索する場合は、下記のリンクをクリックしてください。

- Graphics.RotateTransformのページへのリンク