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

Graphics.MultiplyTransform メソッド (Matrix)

この Graphics と指定した Matrix のワールド変換を乗算します。

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

Public Sub MultiplyTransform ( _
    matrix As Matrix _
)
Dim instance As Graphics
Dim matrix As Matrix

instance.MultiplyTransform(matrix)
public void MultiplyTransform (
    Matrix matrix
)
public:
void MultiplyTransform (
    Matrix^ matrix
)
public void MultiplyTransform (
    Matrix matrix
)
public function MultiplyTransform (
    matrix : Matrix
)

パラメータ

matrix

ワールド変換を乗算する 4 × 4 Matrix。

解説解説
使用例使用例

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

Public Sub MultiplyTransformMatrix(ByVal
 e As PaintEventArgs)

    ' Create transform matrix.
    Dim transformMatrix As New
 Matrix

    ' Translate matrix, prepending translation vector.
    transformMatrix.Translate(200.0F, 100.0F)

    ' Rotate transformation matrix of graphics object,

    ' prepending rotation matrix.
    e.Graphics.RotateTransform(30.0F)

    ' Multiply (prepend to) transformation matrix of

    ' graphics object to translate graphics transformation.
    e.Graphics.MultiplyTransform(transformMatrix)

    ' Draw rotated, translated ellipse.
    e.Graphics.DrawEllipse(New Pen(Color.Blue, 3), -80, -40, 160,
 80)
End Sub
public void MultiplyTransformMatrix(PaintEventArgs
 e)
{

    // Create transform matrix.
    Matrix transformMatrix = new Matrix();

    // Translate matrix, prepending translation vector.
    transformMatrix.Translate(200.0F, 100.0F);

    // Rotate transformation matrix of graphics object,

    // prepending rotation matrix.
    e.Graphics.RotateTransform(30.0F);

    // Multiply (prepend to) transformation matrix of

    // graphics object to translate graphics transformation.
    e.Graphics.MultiplyTransform(transformMatrix);

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

Graphics.MultiplyTransform メソッド (Matrix, MatrixOrder)

この Graphics と指定した Matrix のワールド変換を指定した順序で乗算します。

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

Public Sub MultiplyTransform ( _
    matrix As Matrix, _
    order As MatrixOrder _
)
Dim instance As Graphics
Dim matrix As Matrix
Dim order As MatrixOrder

instance.MultiplyTransform(matrix, order)
public void MultiplyTransform (
    Matrix matrix,
    MatrixOrder order
)
public:
void MultiplyTransform (
    Matrix^ matrix, 
    MatrixOrder order
)
public void MultiplyTransform (
    Matrix matrix, 
    MatrixOrder order
)
public function MultiplyTransform (
    matrix : Matrix, 
    order : MatrixOrder
)

パラメータ

matrix

ワールド変換を乗算する 4 × 4 Matrix。

order

乗算の順序を決定する MatrixOrder 列挙体のメンバ。

解説解説
使用例使用例

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

Public Sub MultiplyTransformMatrixOrder(ByVal
 e As PaintEventArgs)

    ' Create transform matrix.
    Dim transformMatrix As New
 Matrix

    ' Translate matrix, prepending translation vector.
    transformMatrix.Translate(200.0F, 100.0F)

    ' Rotate transformation matrix of graphics object,

    ' prepending rotation matrix.
    e.Graphics.RotateTransform(30.0F)

    ' Multiply (append to) transformation matrix of

    ' graphics object to translate graphics transformation.
    e.Graphics.MultiplyTransform(transformMatrix, MatrixOrder.Append)

    ' Draw rotated, translated ellipse.
    e.Graphics.DrawEllipse(New Pen(Color.Blue, 3), -80, -40, 160,
 80)
End Sub
public void MultiplyTransformMatrixOrder(PaintEventArgs
 e)
{

    // Create transform matrix.
    Matrix transformMatrix = new Matrix();

    // Translate matrix, prepending translation vector.
    transformMatrix.Translate(200.0F, 100.0F);

    // Rotate transformation matrix of graphics object,

    // prepending rotation matrix.
    e.Graphics.RotateTransform(30.0F);

    // Multiply (append to) transformation matrix of

    // graphics object to translate graphics transformation.
    e.Graphics.MultiplyTransform(transformMatrix, MatrixOrder.Append);

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

Graphics.MultiplyTransform メソッド

この Graphics と指定した Matrix のワールド変換を乗算します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
Graphics.MultiplyTransform (Matrix) この Graphics と指定した Matrix のワールド変換を乗算します。
Graphics.MultiplyTransform (Matrix, MatrixOrder) この Graphics と指定した Matrix のワールド変換を指定した順序で乗算します。
参照参照


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

英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「Graphics.MultiplyTransform」の関連用語

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

   

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



Graphics.MultiplyTransformのページの著作権

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

©2026 GRAS Group, Inc.RSS