THotPDF.AddImageAsMaskFromFile Method
AddImageAsMaskFromFile loads an image file and registers it as a PDF /ImageMask image XObject
Declaration
function AddImageAsMaskFromFile(FileName: TFileName; Compression: THPDFImageCompressionType= icFlate): Integer;
Usage
Use the returned image index as the MaskIndex for THotPDF.AddImageWithMaskFromFile or the image overloads that accept a mask index
The helper is the C++Builder-facing file-name counterpart of AddImageAsMask and avoids passing the low-level IsMask flag manually