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.FromColor(TColor) Method

Converts a specified TColor value to the TdxAlphaColor type.

#Declaration

Delphi
class function FromColor(const AColor: TColor): TdxAlphaColor; overload; static;

#Parameters

Name Type
AColor TColor

#Returns

Type
TdxAlphaColor

#Remarks

FromColor calls the dxColorToAlphaColor function, passes AColor as its parameter, and returns the function’s result. The alpha value of the resulting color is always 255 ($FF), which corresponds to a non-transparent (i.e., solid) color.

See Also