THotPDF.AddImageWithMaskFromFile Method
AddImageWithMaskFromFile loads a color image file and attaches a previously registered image mask through the PDF /Mask entry
Declaration
function AddImageWithMaskFromFile(FileName: TFileName; MaskIndex: Integer; Compression: THPDFImageCompressionType= icJpeg): Integer;
Usage
Create the mask with THotPDF.AddImageAsMaskFromFile or AddImageAsMask, then pass that returned index as MaskIndex
The returned image index can be drawn with THPDFPage.ShowImage