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

dxMakeAlphaColor(TColor,Byte) Method

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

#Declaration

Delphi
function dxMakeAlphaColor(AColor: TColor; AAlpha: Byte = 255): TdxAlphaColor;

#Parameters

Name Type
AColor TColor
AAlpha Byte

#Returns

Type
TdxAlphaColor

#Remarks

The first overloaded variant accepts red, green, and blue color component values as the R, G, and B parameters, respectively. The alpha value of the resulting color is 255 ($FF), which corresponds to a non-transparent (i.e., solid) color.

The second overloaded variant allows you to pass the alpha value of the resulting color as the A parameter in addition to the color component values (R, G, and B).

The third overloaded variant creates the color based on the color components (TColor bits) and the alpha value passed as the AColor and AAlpha parameters, respectively.

See Also