THotPDF.AddImageWithTransparency32 Method
Method summary: THotPDF.AddImageWithTransparency32 Method
Declaration
function AddImageWithTransparency32(Width, Height: Integer; const Pixels: array of byte): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Width | Image width in pixels |
Height | Image height in pixels |
Pixels | Packed 32-bit pixel byte array |
Return value
Image resource index for the transparent image
Usage notes
- Use this API for RGBA-style buffers produced by rendering or image-processing code
- The pixel buffer length must match the supplied dimensions
Related APIs
- THotPDF
- THotPDF.AddImage Method
- THotPDF.AddImageFromFile Method