类 LinearGradientBrush
LinearGradientBrush class
封装具有线性渐变的 Brush。此类不可被继承。
public sealed class LinearGradientBrush : LinearGradientBrushBase
构造函数
| 名称 | 描述 |
|---|
| LinearGradientBrush() | 使用默认参数初始化 LinearGradientBrush 类的新实例。起始颜色为黑色,结束颜色为白色,角度为 45 度,矩形位于 (0,0),大小为 (1,1)。 |
| LinearGradientBrush(Point, Point, Color, Color) | 初始化 LinearGradientBrush 类的新实例。 |
| LinearGradientBrush(PointF, PointF, Color, Color) | 初始化 LinearGradientBrush 类的新实例。 |
| LinearGradientBrush(Rectangle, Color, Color, float) | 初始化 LinearGradientBrush 类的新实例。 |
| LinearGradientBrush(RectangleF, Color, Color, float) | 初始化 LinearGradientBrush 类的新实例。 |
| LinearGradientBrush(Rectangle, Color, Color, float, bool) | 初始化 LinearGradientBrush 类的新实例。 |
| LinearGradientBrush(RectangleF, Color, Color, float, bool) | 初始化 LinearGradientBrush 类的新实例。 |
属性
方法
| 名称 | 描述 |
|---|
| virtual DeepClone() | 创建当前 Brush 的深度克隆副本。 |
| Dispose() | 释放当前实例。 |
| override Equals(object) | 检查对象是否相等。 |
| override GetHashCode() | 获取当前对象的哈希码。 |
| MultiplyTransform(Matrix) | 将表示此 LinearGradientBrush 的局部几何变换的Matrix 与指定的Matrix相乘,并在前面预置指定的Matrix。 |
| MultiplyTransform(Matrix, MatrixOrder) | 将表示此 LinearGradientBrush 的局部几何变换的Matrix 与指定的Matrix相乘,顺序如指定。 |
| ResetTransform() | 将 Transform 属性重置为单位矩阵。 |
| RotateTransform(float) | 按指定角度旋转本地几何变换。此方法将旋转前置到变换中。 |
| RotateTransform(float, MatrixOrder) | 按指定顺序以指定角度旋转本地几何变换。 |
| ScaleTransform(float, float) | 按指定比例缩放本地几何变换。此方法将缩放矩阵前置到变换中。 |
| ScaleTransform(float, float, MatrixOrder) | 按指定顺序以指定比例缩放本地几何变换。 |
| SetBlendTriangularShape(float) | 创建一个线性渐变,中心颜色为主色,两端线性衰减至单一颜色。 |
| SetBlendTriangularShape(float, float) | 创建一个线性渐变,中心颜色为主色,两端线性衰减至单一颜色。 |
| SetSigmaBellShape(float) | 创建基于钟形曲线的渐变衰减。 |
| SetSigmaBellShape(float, float) | 创建基于钟形曲线的渐变衰减。 |
| TranslateTransform(float, float) | 按指定尺寸平移本地几何变换。此方法将平移前置到变换中。 |
| TranslateTransform(float, float, MatrixOrder) | 按指定顺序以指定尺寸平移本地几何变换。 |
另请参见