THotPDF.AddMonochromeImageAuto Method

Adds an image and lets HotPDF choose the compression for 1-bit content. It is the same as calling AddImage with icAutoMono: a 1-bit bitmap whose two palette colours are shades of grey uses Flate whilst it is small, CCITT Group 4 for medium sizes or PDF/A output and JBIG2 for large images. Every other image, including a 1-bit bitmap with a coloured palette, uses Flate so that its colours are kept

Declaration

function AddMonochromeImageAuto(Image: TGraphic): Integer;

Unit

HPDFDoc

Parameters

NamePurpose
ImageA TBitmap or TJPEGImage to be embedded

Return value

The image index to hand to ShowImage

Usage notes

Related APIs