THotPDF.AddImageWithMask Method
方法摘要: THotPDF.AddImageWithMask Method
声明
function AddImageWithMask(Image: TGraphic; MaskIndex: Integer; Compression: THPDFImageCompressionType = icJpeg): Integer;
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
Image | 用作可见图像来源的图形对象 |
MaskIndex | 蒙版资源的图像索引 |
Compression | 可见图像使用的压缩方式 |
返回值
带蒙版图像的图像资源索引
使用说明
- 先用 THotPDF.AddImageAsMask 创建蒙版
- 保持蒙版与可见图像的尺寸相容,以获得可预期的透明度