[]
向渐变中添加一个停止点,并指定颜色的亮度和透明度。
void Insert(int rgb, double position, double transparency = 0, int index = -1, double brightness = 0)
| Type | Name | Description |
|---|---|---|
| int | rgb | 指定渐变停止点的颜色。 |
| double | position | 指定停止点在渐变中的位置,以百分比表示。 |
| double | transparency | 指定渐变停止点颜色的不透明度。 |
| int | index | 停止点的索引编号。 |
| double | brightness | 指定渐变停止点颜色的亮度。 |