THotPDF.AddImageAsMask Method
Method summary: THotPDF.AddImageAsMask Method
Declaration
function AddImageAsMask(Image: TGraphic; Compression: THPDFImageCompressionType = icFlate): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Image | Graphic object used as the mask source |
Compression | Compression used for the stored mask image |
Return value
Image resource index for the generated mask
Usage notes
- Use the returned index as the mask handle for THotPDF.AddImageWithMask
- Use the file-name overload when the mask is already stored on disk
Related APIs
- THotPDF
- THotPDF.AddImage Method
- THotPDF.AddImageFromFile Method
- Contents