語言

PathGradientBrush.ResetTransform 方法

定義

將屬性 Transform 重置為同一性。

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

範例

以下程式碼範例將 的 pgBrush 幾何變換重置為恆等。 假設 是 myPath 存在 GraphicsPath的 。

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

適用於