Skip to content
Member Filters
Show Inherited
Show Protected
Show abstract
GR32🞂TCustomBitmap32🞂ResetAlphaMethodPublic

TCustomBitmap32.ResetAlpha

Resets alpha values of all pixels to $FF (fully opaque) or a specified alpha value.

Declarations ​

pascal
procedure ResetAlpha; overload;
procedure ResetAlpha(const AlphaValue: Byte); overload;
Overload Details

Overload 1 ​

pascal
procedure ResetAlpha; overload;

Resets the alpha component of all pixels in the bitmap to $FF (fully opaque).

Overload 2 ​

pascal
procedure ResetAlpha(const AlphaValue: Byte); overload;

Resets the alpha component of all pixels in the bitmap to AlphaValue.

ParameterTypeDescription
AlphaValueByte8-bit alpha value (0 to 255).

Description ​

ResetAlpha sets the alpha channel of all pixels without altering RGB color components.

Example ​

pascal
Bitmap.ResetAlpha(255);