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

FileNameFile containing JBIG2 image stream bytes
WidthImage width in pixels
HeightImage height in pixels
OptionsBit 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