THotPDF.AddImageWithMask Method
Tóm tắt phương thức: THotPDF.AddImageWithMask Method
Khai báo
function AddImageWithMask(Image: TGraphic; MaskIndex: Integer; Compression: THPDFImageCompressionType = icJpeg): Integer;
Đơn vị
HPDFDoc
Tham số
| Tên | Mục đích |
|---|---|
Image | Graphic object used as the visible image source |
MaskIndex | Image index of the mask resource |
Compression | Compression used for the visible image |
Giá trị trả về
Image resource index for the masked image
Ghi chú sử dụng
- Create the mask first with THotPDF.AddImageAsMask
- Keep the mask and visible image dimensions compatible for predictable transparency
API liên quan
- THotPDF
- THotPDF.AddImage Method
- THotPDF.AddImageFromFile Method
- Contents