Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxGPBrushGradientPoints.Colors Property

An array containing the TdxAlphaColor color values of the key points on the gradient line.

#Declaration

Delphi
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:

See Also