THotPDF.AddImageWithTransparency Method
Adds image with transparency data to the graphics and color management workflow. The call creates or attaches the PDF-side object needed by later output, validation, signing, or page rendering steps
Declaration
function AddImageWithTransparency(Width, Height: Integer; const RGB: array of byte; const Alpha: array of byte): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Width | Page coordinate or size value expressed in the current HotPDF coordinate space |
Height | Page coordinate or size value expressed in the current HotPDF coordinate space |
RGB | Input used by AddImageWithTransparency |
Alpha | Transparency value used by the graphics state or soft-mask workflow |
Return value
Returns an Integer value
Usage notes
- Use this API in the graphics and color management workflow before the affected page, resource, field, or catalog object is finalized
- Keep object names, field names, resource names, and returned handles stable until the document is finalized