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();

适用于