Share via


PathGradientBrush.ResetTransform 方法

定義

Transform 屬性重設為識別 (Identity)。

public:
 void ResetTransform();
public void ResetTransform ();
member this.ResetTransform : unit -> unit
Public Sub ResetTransform ()

範例

下列程式代碼範例會將的 pgBrush 幾何轉換重設為識別。 myPath假設是現有的 GraphicsPath

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

適用於