Graphics.RotateTransformとは? わかりやすく解説

Graphics.RotateTransform メソッド (Single)

この Graphics変換行列に、指定した回転適用します。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub RotateTransform ( _
    angle As Single _
)
Dim instance As Graphics
Dim angle As Single

instance.RotateTransform(angle)
public void RotateTransform (
    float angle
)
public:
void RotateTransform (
    float angle
)
public void RotateTransform (
    float angle
)
public function RotateTransform (
    angle : float
)

パラメータ

angle

回転角度。

解説解説
使用例使用例

次の例は、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);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.RotateTransform メソッド (Single, MatrixOrder)

この Graphics変換行列に、指定した回転指定した順序適用します。

名前空間: System.Drawing
アセンブリ: System.Drawing (system.drawing.dll 内)
構文構文

Public Sub RotateTransform ( _
    angle As Single, _
    order As MatrixOrder _
)
Dim instance As Graphics
Dim angle As Single
Dim order As MatrixOrder

instance.RotateTransform(angle, order)
public void RotateTransform (
    float angle,
    MatrixOrder order
)
public:
void RotateTransform (
    float angle, 
    MatrixOrder order
)
public void RotateTransform (
    float angle, 
    MatrixOrder order
)
public function RotateTransform (
    angle : float, 
    order : MatrixOrder
)

パラメータ

angle

回転角度。

order

回転が行変換後ろ追加される前に付加されるかを指定する MatrixOrder 列挙体のメンバ

解説解説
使用例使用例

次の例は、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);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.RotateTransform メソッド




英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「Graphics.RotateTransform」の関連用語

Graphics.RotateTransformのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



Graphics.RotateTransformのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS