PathGradientBrush.ResetTransform 方法

定义

Transform 属性重置为标识。Resets the Transform property to identity.

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

示例

下面的代码示例将 pgBrush 的几何变换重置为恒等。The following code example resets the geometric transform of pgBrush to identity. 假定 myPath 是现有 GraphicsPathIt is assumed that myPath is an existing GraphicsPath.

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

适用于