AddImageJBIG2DirectFromFile
Image handling
Description
Adds an already-encoded JBIG2 image stream from a file as a PDF image XObject
Syntax
Delphi
Function TPDFlib.AddImageJBIG2DirectFromFile(Const FileName: WideString; Width, Height, Options: Integer): Integer;
Parameters
| FileName | File containing JBIG2 image stream bytes |
|---|---|
| Width | Image width in pixels |
| Height | Image height in pixels |
| Options | Bit 0 writes Interpolate |
Return values
Returns the new ImageID, or 0 when the file cannot be read or dimensions are invalid
Remarks
Use this wrapper when the Delphi class API is preferred over assembling the lower-level PDF objects manually
See also
AddImageJBIG2DirectFromStream, AddImageJBIG2DirectFromString, AddImageDirectFromString