TdxGPBrushGradientPoints Class
A set of key gradient points arranged in a brush area.
Declaration
TdxGPBrushGradientPoints = class(
TdxGpBase
)
Remarks
This class implements a gradient line with a set of the key points located on it. The straight gradient line crosses the brush area in a specific manner determined by the positions of the starting and ending points on the brush’s border area.
The actual positions of starting and ending points of the gradient line and, thus, its direction within the painted region, are determined by the GradientMode property implemented in the TdxGPBrush class.
The TdxGPBrushGradientPoints class extends its ancestor class with the following members, allowing you to:
Access the TdxAlphaColor color values of individual key gradient points by their zero-based indexes (the Colors property);
Access the positions of the key points on the gradient line by their zero-based indexes (the Offsets property);
Identify the current number of key gradient points on the line (the Count property);
Set the top limit for the total number of key points on the gradient line (the Capacity property);
Remove the specified key points from the gradient line (the Delete procedure);
Clear the gradient line from all previously created key points (the Clear procedure);
Invert the position order of all key points on the gradient line (the InvertOrder procedure).
The TdxGPBrushGradientPoints object is referenced by the GradientPoints property implemented in the TdxGPBrush class.