AddImageWithTransparency

Image handling

Description

Selects an existing image and applies an RGB color-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 color-key mask
FromRedLower red value of the transparent color range
FromGreenLower green value of the transparent color range
FromBlueLower blue value of the transparent color range
ToRedUpper red value of the transparent color range
ToGreenUpper green value of the transparent color range
ToBlueUpper blue value of the transparent color 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