Sign in Join
FPDoc Onlineexperiment

TRasterImage.SetTransparentMode procedure

Member of TRasterImageprotectedIn unit Graphics

Sets the value for the TransparentMode property.

Declaration

pascal
procedure SetTransparentMode(AValue: TTransparentMode)

Description

No actions are performed in the method when AValue is the same as the existing value for the property.

TransparentMode is set to tmAuto when TransparentColor contains clDefault. Otherwise, the RequestTransparentColor method is called to get and store the color in the bottom-left pixel in the raw image data to the TransparentColor property.

ApplyTransparent is called to apply the effective transparency for the image based on the settings in Transparent, TransparentColor, and TransparentMode.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.