Skip to main content
Red
Tan

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

TdxAlphaColors.FromArgb(Byte,TdxAlphaColor) Method

Creates a TdxAlphaColor value from individual color component values and returns it as the function’s result.

Overloaded Versions

#Declaration

Delphi
class function FromArgb(AAlpha: Byte; ABaseColor: TdxAlphaColor): TdxAlphaColor; overload; static;

#Parameters

Name Type
AAlpha Byte
ABaseColor TdxAlphaColor

#Returns

Type
TdxAlphaColor

#Remarks

The second overloaded variant allows you to specify the alpha value of the resulting color using the A parameter, in addition to providing three color component values (R, G, and B). The function calls the dxMakeAlphaColor global function with A, R, G, B as its parameters.

The first overloaded variant calls the second overloaded variant and passes 255, R, G, B as its parameters, thus producing only solid colors.

The third overloaded variant allows you to specify the alpha value (Alpha) for the color passed as the ABaseColor parameter.

See Also