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

ImageIDExisting image handle to mark as a mask
MaskType1 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

See also

SetImageAsMask, AddImageWithMask, SetImageSoftMaskFromImage