THotPDF.AddImageWithJpegQuality Method
Method summary: THotPDF.AddImageWithJpegQuality Method
Declaration
function AddImageWithJpegQuality(Image: TGraphic; Quality: TJPEGQualityRange): Integer;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Image | Graphic object used as the image source |
Quality | JPEG quality value passed to the encoder |
Return value
Image resource index for the encoded image
Usage notes
- Use this overload when output size and JPEG artefacts need explicit control
- Use the file-name overload for disk-based image sources
Related APIs
- THotPDF
- THotPDF.AddImage Method
- THotPDF.AddImageFromFile Method
- Contents