AddImageCCITTFromFile
Image handling
Description
Adds a 1-bit bitmap image from a file using CCITT Group 3 or Group 4 compression
Syntax
Delphi
Function TPDFlib.AddImageCCITTFromFile(Const FileName: WideString; CompressionType, Options: Integer): Integer;
Parameters
| FileName | Bitmap file to load |
|---|---|
| CompressionType | 31 for Group 3 1D, 32 for Group 3 2D, or 42 for Group 4 2D |
| Options | Bit 0 writes BlackIs1; bit 1 writes Interpolate |
Return values
Returns the new ImageID, or 0 if the bitmap cannot be loaded or encoded
Remarks
Use this wrapper when the Delphi class API is preferred over assembling the lower-level PDF objects manually
See also
AddImageCCITTFromStream, AddImageCCITTFromString, AddImageDirectFromString