THotPDF.AddImageWithTransparency Method
方法摘要: THotPDF.AddImageWithTransparency Method
声明
function AddImageWithTransparency(Width, Height: Integer; const RGB: array of byte; const Alpha: array of byte): Integer;
单元
HPDFDoc
参数
| 名称 | 用途 |
|---|---|
Width | Image width in pixels |
Height | Image height in pixels |
RGB | RGB byte array containing three bytes per pixel |
Alpha | Alpha byte array containing one byte per pixel |
返回值
Image resource index for the transparent image
使用说明
- RGB 与 alpha 数组必须与给定的图像尺寸一致
- 透明数据已在 TGraphic 对象之外就绪时适用此 API