TdxGPBrushGradientPoints.Colors Property
An array containing the TdxAlphaColor color values of the key points on the gradient line.
Declaration
property Colors[Index: Integer]: TdxAlphaColor read; write;
Property Value
Type |
---|
TdxAlphaColor |
Remarks
Use this property to either assign or change the color of individual key points on the gradient line. The color values stored by the Colors property correspond to the same-indexed values stored by the Offsets property. The Index parameter specifies the gradient point’s zero-based index within the array.
A line, passing on the perpendicular through an individual key point on the gradient line, is painted with the same color as a gradient point. An individual gradient area, bound by two such lines and/or brush area borders, is painted with interpolated colors:
If one of the created key points does not match either the beginning or end of the gradient line, another “virtual” gradient point is created at the respective end of the line. Therefore, each perpendicular colored line, corresponding to an individual key gradient point, delimits two individual gradient areas: