THotPDF.AddImageWithTransparency Method
方法摘要: THotPDF.AddImageWithTransparency Method
宣告
function AddImageWithTransparency(Width, Height: Integer; const RGB: array of byte; const Alpha: array of byte): Integer;
單元
HPDFDoc
參數
| 名稱 | 用途 |
|---|---|
Width | 影像寬度(像素) |
Height | 影像高度(像素) |
RGB | 每像素三個位元組的 RGB 位元組陣列 |
Alpha | 每像素一個位元組的 Alpha 位元組陣列 |
傳回值
透明影像的影像資源索引
使用說明
- RGB 與 Alpha 陣列必須與傳入的影像尺寸相符
- 透明度資料已經存在 TGraphic 物件之外時,使用這個 API
相關 API
- THotPDF
- THotPDF.AddImage Method
- THotPDF.AddImageFromFile Method