Export (0) Print
Expand All

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft