LinearGradientBrush::Transform Property

 

Gets or sets a copy Matrix that defines a local geometric transform for this LinearGradientBrush.

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

public:
property Matrix^ Transform {
	Matrix^ get();
	void set(Matrix^ value);
}

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 LinearGradientBrush.

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: