THotPDF.AddImageAsMask Method
Adds image as mask data to the image embedding workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps
Declaration
function AddImageAsMask(Image: TGraphic; Compression: THPDFImageCompressionType= icFlate): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Image | Input used by AddImageAsMask |
Compression | Input used by AddImageAsMask |
Return value
Returns an Integer value
Usage notes
- Use this API in the image embedding workflow before the affected page, resource, field, or catalog object is finalised
- Keep object names, field names, resource names, and returned handles stable until the document is finalised