Class ColorBlend
Stores color and position information for gradient interpolation.
Inherited Members
Namespace: DRIT.Drawing.Drawing2D
Assembly: DRIT.Drawing.dll
Syntax
public sealed class ColorBlend
Constructors
ColorBlend()
Initializes a new ColorBlend with empty color and position arrays.
Declaration
public ColorBlend()
ColorBlend(int)
Initializes a new ColorBlend with the specified number of colors.
Declaration
public ColorBlend(int count)
Parameters
| Type | Name | Description |
|---|---|---|
| int | count | The number of colors and positions. |
Properties
Colors
Gets or sets the array of colors for gradient interpolation.
Declaration
public Color[] Colors { get; set; }
Property Value
| Type | Description |
|---|---|
| Color[] |
Positions
Gets or sets the array of positions corresponding to each color.
Declaration
public float[] Positions { get; set; }
Property Value
| Type | Description |
|---|---|
| float[] |