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
| ImageID | Existing image handle that receives the color-key mask |
|---|---|
| FromRed | Lower red value of the transparent color range |
| FromGreen | Lower green value of the transparent color range |
| FromBlue | Lower blue value of the transparent color range |
| ToRed | Upper red value of the transparent color range |
| ToGreen | Upper green value of the transparent color range |
| ToBlue | Upper 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