ColorBlend
ColorBlend class
定义用于在多色渐变中插值颜色混合的颜色和位置数组。 这个类不能被继承。
public sealed class ColorBlend
构造函数
姓名 | 描述 |
---|---|
ColorBlend() | 初始化ColorBlend 类. |
ColorBlend(int) | 初始化ColorBlend 具有指定颜色和位置数量的类。 |
特性
姓名 | 描述 |
---|---|
Colors { get; set; } | 获取或设置一个颜色数组,表示要在渐变的相应位置使用的颜色。 |
Positions { get; set; } | 获取或设置沿渐变线的位置。 |