次の方法で共有


PathGradientBrush.ResetTransform メソッド

Transform プロパティを単位行列にリセットします。

Public Sub ResetTransform()
[C#]
public void ResetTransform();
[C++]
public: void ResetTransform();
[JScript]
public function ResetTransform();

使用例

[C#] pgBrush のジオメトリック変換を単位行列にリセットする例を次に示します。このコードは、 myPath は既存の GraphicsPath オブジェクトであることを前提にしています。

 
PathGradientBrush pgBrush = new PathGradientBrush(myPath);
pgBrush.ResetTransform();
        

[Visual Basic, C++, JScript] Visual Basic、C++、および JScript のサンプルはありません。C# のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ

参照

PathGradientBrush クラス | PathGradientBrush メンバ | System.Drawing.Drawing2D 名前空間