Skip to main content
Red
Tan

TdxAlphaColors.FromArgb(Byte,TdxAlphaColor) Method

Creates a TdxAlphaColor with a custom alpha (opacity) based on another TdxAlphaColor value.

Declaration

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

Parameters

Name Type Description
AAlpha Byte

Specifies the required alpha (opacity) value for the returned color.

Accepts a value from 0 (completely transparent) to 255 (opaque).

ABaseColor TdxAlphaColor

Accepts a base color whose alpha value is ignored.

Returns

Type Description
TdxAlphaColor

The created color whose alpha component matches the AAlpha value.

Remarks

Call the FromArgb function to create a TdxAlphaColor value with different opacity. For example, you can use the FromArgb functions to create colors with adjusted opacity levels from predefined constants declared in the TdxAlphaColors record.

See Also