AddImageWithTransparency

Image handling

Description

Selects an existing image and applies an RGB colour-key transparency range in one call

Syntax

Delphi

Function TPDFlib.AddImageWithTransparency(ImageID: Integer; FromRed, FromGreen, FromBlue, ToRed, ToGreen, ToBlue: Double): Integer;

Parameters

ImageIDExisting image handle that receives the colour-key mask
FromRedLower red value of the transparent colour range
FromGreenLower green value of the transparent colour range
FromBlueLower blue value of the transparent colour range
ToRedUpper red value of the transparent colour range
ToGreenUpper green value of the transparent colour range
ToBlueUpper blue value of the transparent colour range

Return values

Returns ImageID on success, or 0 if the image cannot be selected

Remarks

This helper is equivalent to selecting the image and calling SetImageMask

See also

SetImageMask, AddImageTransparentFromFile, AddImageWithMask