Skip to content

SetImageOverlay_UseTransparentColor

function

Delphi
procedure SetImageOverlay_UseTransparentColor (Index: LongInt; Value: Boolean);
C++Builder
void __fastcall SetImageOverlay_UseTransparentColor(System::LongInt Index, bool Value);
C#
public void SetImageOverlay_UseTransparentColor(int Index, bool Value);
VB.NET
Public Sub SetImageOverlay_UseTransparentColor(Index As Integer, Value As Boolean)
C++/Qt
void SetImageOverlay_UseTransparentColor (int Index, BOOL Value);
void SetImageOverlay_UseTransparentColor (BOOL Value);

Activates the transparent color for the image overlay of the specified index. The overlay transparency must be enabled with SetImageOverlay_Transparent.

If enabled, the color must be specified with SetImageOverlay_TransparentColorValue.

If disabled (default), an image having an alpha channel (e.g. a 32-bit PNG file) is drawn with its per-pixel transparency, and for an image without an alpha channel the default color (background color) of the image is used as the transparent color.

Look at the Image overlays chapter for more information.