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.Add(Single,TdxAlphaColor) Method

Creates a new key point on the gradient line.

#Declaration

Delphi
function Add(AOffset: Single; AColor: TdxAlphaColor): Integer;

#Parameters

Name Type
AOffset Single
AColor TdxAlphaColor

#Returns

Type
Integer

#Remarks

Invoke this procedure to specify a new key point by both its position and color as the AOffset and AColor parameters, respectively. Each call of the Add method increases the Count property value by one.

Similarly to the respective Offsets property, the AOffset parameter ranges from 0 to 1 (i.e., from the beginning to the end of the gradient line, whose direction is determined by the brush’s GradientMode property value).

Note

Since both the brush and its gradient points support transparency, they use the TdxAlphaColor instead of standard TColor as a color type.

See Also