ColorBlend 类
Summary: Defines arrays of colors and positions used for interpolating color blending in a multicolor gradient. This class cannot be inherited.
Module: aspose.imaging
Full Name: aspose.imaging.ColorBlend
Constructors
| Name | 描述 |
|---|---|
| ColorBlend() | 初始化一个新的 ColorBlend 类实例。 |
| ColorBlend(count) | 使用指定的颜色数和位置,初始化一个新的 ColorBlend 类实例。 |
Properties
| Name | Type | Access | 描述 |
|---|---|---|---|
| colors | Color[] | r/w | 获取或设置一个颜色数组,表示在渐变的相应位置使用的颜色。 |
| 位置 | float[] | r/w | 获取或设置渐变线上的位置。 |
Constructor: ColorBlend()
ColorBlend()
初始化一个新的 ColorBlend 类实例。
Constructor: ColorBlend(count)
ColorBlend(count)
使用指定的颜色数和位置,初始化一个新的 ColorBlend 类实例。
Parameters:
| 参数 | Type | Description |
|---|---|---|
| count | int | 此 ColorBlend 中的颜色和位置的数量。 |