AddImageAsMask
Image handling
Description
Selects an existing image and marks it as a stencil or soft mask in one call
Syntax
Delphi
Function TPDFlib.AddImageAsMask(ImageID, MaskType: Integer): Integer;
Parameters
| ImageID | Existing image handle to mark as a mask |
|---|---|
| MaskType | 1 marks a stencil mask and 2 marks a soft mask |
Return values
Returns ImageID on success, or 0 if the image cannot be selected as a mask
Remarks
This helper is equivalent to selecting the image and calling SetImageAsMask