Graphics.TranslateTransform メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > Graphics.TranslateTransform メソッドの意味・解説 

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

この Graphics変換行列指定平行移動指定順序適用することによって、座標系原点変更します

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

Public Sub TranslateTransform ( _
    dx As Single, _
    dy As Single, _
    order As MatrixOrder _
)
Dim instance As Graphics
Dim dx As Single
Dim dy As Single
Dim order As MatrixOrder

instance.TranslateTransform(dx, dy, order)
public void TranslateTransform (
    float dx,
    float dy,
    MatrixOrder order
)
public:
void TranslateTransform (
    float dx, 
    float dy, 
    MatrixOrder order
)
public void TranslateTransform (
    float dx, 
    float dy, 
    MatrixOrder order
)
public function TranslateTransform (
    dx : float, 
    dy : float, 
    order : MatrixOrder
)

パラメータ

dx

平行移動する x 座標

dy

平行移動する y 座標

order

平行移動変換行列前に付加されるか後に追加されるかを指定する MatrixOrder 列挙体のメンバ

解説解説
使用例使用例

次の例は、Windows フォームでの使用意図してデザインされており、Paint イベント ハンドラパラメータである PaintEventArgse が必要です。このコード次のアクション実行します

Public Sub TranslateTransformAngleMatrixOrder(ByVal
 e As PaintEventArgs)

    ' Set world transform of graphics object to rotate.
    e.Graphics.RotateTransform(30.0F)

    ' Then to translate, appending to world transform.
    e.Graphics.TranslateTransform(100.0F, 0.0F, MatrixOrder.Append)

    ' Draw rotated, translated ellipse to screen.
    e.Graphics.DrawEllipse(New Pen(Color.Blue, 3), 0, 0, 200,
 80)
End Sub
public void TranslateTransformAngleMatrixOrder(PaintEventArgs
 e)
{

    // Set world transform of graphics object to rotate.
    e.Graphics.RotateTransform(30.0F);

    // Then to translate, appending to world transform.
    e.Graphics.TranslateTransform(100.0F, 0.0F, MatrixOrder.Append);

    // Draw rotated, translated ellipse to screen.
    e.Graphics.DrawEllipse(new Pen(Color.Blue, 3), 0, 0, 200,
 80);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.TranslateTransform メソッド (Single, Single)

この Graphics変換行列前に指定平行移動付加することによって、座標系原点変更します

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

Public Sub TranslateTransform ( _
    dx As Single, _
    dy As Single _
)
Dim instance As Graphics
Dim dx As Single
Dim dy As Single

instance.TranslateTransform(dx, dy)
public void TranslateTransform (
    float dx,
    float dy
)
public:
void TranslateTransform (
    float dx, 
    float dy
)
public void TranslateTransform (
    float dx, 
    float dy
)
public function TranslateTransform (
    dx : float, 
    dy : float
)

パラメータ

dx

平行移動する x 座標

dy

平行移動する y 座標

解説解説
使用例使用例

次の例は、Windows フォームでの使用意図してデザインされており、Paint イベント ハンドラパラメータである PaintEventArgse が必要です。このコード次のアクション実行します

Public Sub TranslateTransformAngle(ByVal
 e As PaintEventArgs)

    ' Set world transform of graphics object to rotate.
    e.Graphics.RotateTransform(30.0F)

    ' Then to translate, prepending to world transform.
    e.Graphics.TranslateTransform(100.0F, 0.0F)

    ' Draw translated, rotated ellipse to screen.
    e.Graphics.DrawEllipse(New Pen(Color.Blue, 3), 0, 0, 200,
 80)
End Sub
public void TranslateTransformAngle(PaintEventArgs
 e)
{

    // Set world transform of graphics object to rotate.
    e.Graphics.RotateTransform(30.0F);

    // Then to translate, prepending to world transform.
    e.Graphics.TranslateTransform(100.0F, 0.0F);

    // Draw translated, rotated ellipse to screen.
    e.Graphics.DrawEllipse(new Pen(Color.Blue, 3), 0, 0, 200,
 80);
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

Graphics.TranslateTransform メソッド

この Graphics変換行列前に指定平行移動付加することによって、座標系原点変更します
オーバーロードの一覧オーバーロードの一覧

名前 説明
Graphics.TranslateTransform (Single, Single) この Graphics変換行列前に指定平行移動付加することによって、座標系原点変更します
Graphics.TranslateTransform (Single, Single, MatrixOrder) この Graphics変換行列指定平行移動指定順序適用することによって、座標系原点変更します
参照参照


このページでは「.NET Framework クラス ライブラリ リファレンス」からGraphics.TranslateTransform メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からGraphics.TranslateTransform メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からGraphics.TranslateTransform メソッド を検索

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

辞書ショートカット

すべての辞書の索引

「Graphics.TranslateTransform メソッド」の関連用語

Graphics.TranslateTransform メソッドのお隣キーワード
検索ランキング

   

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



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

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

©2024 GRAS Group, Inc.RSS