THotPDF.AddImageWithTransparency32 Method
方法摘要: THotPDF.AddImageWithTransparency32 Method
宣告
function AddImageWithTransparency32(Width, Height: Integer; const Pixels: array of byte): Integer;
單元
HPDFDoc
參數
| 名稱 | 用途 |
|---|---|
Width | 影像寬度(像素) |
Height | 影像高度(像素) |
Pixels | 緊密排列的 32 位元像素位元組陣列 |
傳回值
透明影像的影像資源索引
使用說明
- 轉譯或影像處理程式碼產出的 RGBA 型緩衝區請用這個 API
- 像素緩衝區長度必須與傳入的尺寸相符
相關 API
- THotPDF
- THotPDF.AddImage Method
- THotPDF.AddImageFromFile Method