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

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

TextureBrush.ResetTransform メソッド

対象の TextureBrush オブジェクトTransform プロパティ単位行列リセットします。

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

Public Sub ResetTransform
Dim instance As TextureBrush

instance.ResetTransform
public void ResetTransform ()
public:
void ResetTransform ()
public void ResetTransform ()
public function ResetTransform ()

戻り値
このメソッドは値を返しません。

使用例使用例

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

Public Sub ResetTransform_Example(ByVal
 e As PaintEventArgs)

    ' Create a TextureBrush object.
    Dim tBrush As New TextureBrush(New
 Bitmap("texture.jpg"))

    ' Rotate the texture image by 90 degrees.
    tBrush.RotateTransform(90)

    ' Fill a rectangle with tBrush.
    e.Graphics.FillRectangle(tBrush, 0, 0, 100, 100)

    ' Reset transformation matrix to identity.
    tBrush.ResetTransform()

    ' Fill a rectangle with tBrush.
    e.Graphics.FillRectangle(tBrush, 0, 110, 100, 100)
End Sub
'ResetTransform_Example.
public void ResetTransform_Example(PaintEventArgs
 e)
{
             
    // Create a TextureBrush object.
    TextureBrush tBrush = new TextureBrush(new
 Bitmap("texture.jpg"));
             
    // Rotate the texture image by 90 degrees.
    tBrush.RotateTransform(90);
             
    // Fill a rectangle with tBrush.
    e.Graphics.FillRectangle(tBrush, 0, 0, 100, 100);
             
    // Reset transformation matrix to identity.
    tBrush.ResetTransform();
             
    // Fill a rectangle with tBrush.
    e.Graphics.FillRectangle(tBrush, 0, 110, 100, 100);
}
void ResetTransform_Example( PaintEventArgs^ e )
{
   // Create a TextureBrush object.
   TextureBrush^ tBrush = gcnew TextureBrush( gcnew Bitmap( "texture.jpg"
 ) );

   // Rotate the texture image by 90 degrees.
   tBrush->RotateTransform( 90 );

   // Fill a rectangle with tBrush.
   e->Graphics->FillRectangle( tBrush, 0, 0, 100, 100 );

   // Reset transformation matrix to identity.
   tBrush->ResetTransform();

   // Fill a rectangle with tBrush.
   e->Graphics->FillRectangle( tBrush, 0, 110, 100, 100 );
}
public void ResetTransform_Example(PaintEventArgs
 e)
{
    // Create a TextureBrush object.
    TextureBrush tBrush = new TextureBrush(new
 Bitmap("texture.jpg"));

    // Rotate the texture image by 90 degrees.
    tBrush.RotateTransform(90);

    // Fill a rectangle with tBrush.
    e.get_Graphics().FillRectangle(tBrush, 0, 0, 100, 100);

    // Reset transformation matrix to identity.
    tBrush.ResetTransform();

    // Fill a rectangle with tBrush.
    e.get_Graphics().FillRectangle(tBrush, 0, 110, 100, 100);
} //ResetTransform_Example
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS