Sign in Join
FPDoc Onlineexperiment

TColorDialog.AlphaChannel property

Member of TColorDialogpublishedIn unit Dialogs

Indicates the opacity or transparency for the selected color.

Declaration

pascal
property AlphaChannel: Byte read FAlphaChannel write FAlphaChannel default 255;

Description

AlphaChannel is a Byte property which normally contains a value in the range 0 (transparent) to 255 (opaque). The default value for the property is 255 ($FF)(fully opaque). The AlphaChannel in a color is used in images which have a TransparentMode where partial transparency is supported. AlphaChannel indicates the opacity for pixels using the color. It allows the color to be combined over other colors using alpha compositing. The more opaque a color, the more it hides the background against which the color is presented.

AlphaChannel is used in widgetsets where the value is supported, and is extracted from or combined with the color value as needed for the native dialog.

On the Windows platform, a control is not displayed for AlphaChannel on the native color selection dialog. Only solid, fully-opaque colors are supported on the dialog.

Added in LCL version 4.0.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.