LinearGradientBrush.Transform 属性
定义
获取或设置一个副本 Matrix,它定义此 LinearGradientBrush 的局部几何转换。Gets or sets a copy Matrix that defines a local geometric transform for this LinearGradientBrush.
public:
property System::Drawing::Drawing2D::Matrix ^ Transform { System::Drawing::Drawing2D::Matrix ^ get(); void set(System::Drawing::Drawing2D::Matrix ^ value); };
public System.Drawing.Drawing2D.Matrix Transform { get; set; }
member this.Transform : System.Drawing.Drawing2D.Matrix with get, set
Public Property Transform As Matrix
属性值
定义几何变换的 Matrix 的副本,该变换仅适用于通过此 LinearGradientBrush 绘制的填充。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. 由于由属性返回的矩阵 Transform 是画笔几何转换的副本,因此,当您不再需要矩阵时,您应该释放它。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.