PathGradientBrush.Transform Property

 

Gets or sets a copy of the Matrix that defines a local geometric transform for this PathGradientBrush.

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

public Matrix Transform { get; set; }

Property Value

Type: System.Drawing.Drawing2D.Matrix

A copy of the Matrix that defines a geometric transform that applies only to fills drawn with this PathGradientBrush.

A geometric transform can be used to translate, scale, rotate, or skew the gradient fill. Because the matrix returned and by the Transform property is a copy of the brush's geometric transform, you should dispose of the matrix when you no longer need it.

.NET Framework
Available since 1.1
Return to top
Show: