THotPDF.AddImageWithTransparency Method
Tóm tắt phương thức: THotPDF.AddImageWithTransparency Method
Khai báo
function AddImageWithTransparency(Width, Height: Integer; const RGB: array of byte; const Alpha: array of byte): Integer;
Đơn vị
HPDFDoc
Tham số
| Tên | Mục đích |
|---|---|
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 |
Giá trị trả về
Image resource index for the transparent image
Ghi chú sử dụng
- The RGB and alpha arrays must match the supplied image dimensions
- Use this API when transparency data is already available outside a TGraphic object
API liên quan
- THotPDF
- THotPDF.AddImage Method
- THotPDF.AddImageFromFile Method
- Contents