AddImageWithMask

Image handling

Description

Marks one existing image as a mask and attaches it to another existing image in one call

Syntax

Delphi

Function TPDFlib.AddImageWithMask(ImageID, MaskImageID, MaskType: Integer): Integer;

Parameters

ImageIDImage that receives the mask
MaskImageIDImage used as the stencil or soft mask
MaskType1 attaches a stencil mask and 2 attaches a soft mask

Return values

Returns ImageID on success, or 0 if either image is invalid or the mask cannot be attached

Remarks

Use this helper to avoid changing the selected image manually when building transparency workflows from imported images

See also

AddImageAsMask, SetImageMaskFromImage, SetImageSoftMaskFromImage