PathGradientBrush::ResetTransform Method ()

 

Resets the Transform property to identity.

Namespace:   System.Drawing.Drawing2D
Assembly:  System.Drawing (in System.Drawing.dll)

public:
void ResetTransform()

The following code example resets the geometric transform of pgBrush to identity. It is assumed that myPath is an existing GraphicsPath.

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

.NET Framework
Available since 1.1
Return to top
Show: