THotPDF.AddImageWithMask Method
Adds image with 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 AddImageWithMask(Image: TGraphic; MaskIndex: Integer; Compression: THPDFImageCompressionType= icJpeg): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Image | Input used by AddImageWithMask |
MaskIndex | Zero-based index or object index used to select an existing item |
Compression | Input used by AddImageWithMask |
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 finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized