AddImageJBIG2FromStringEx

Images

Description

Reads bitmap data from an AnsiString buffer and stores it as a JBIG2 image XObject using named option parameters

Syntax

Delphi

Function TPDFlib.AddImageJBIG2FromStringEx(Const Source: AnsiString; Interpolate, SymbolExtract, UseExternalEncoder, SkipBlackDots, BlackDotSize, LossyLevel: Integer): Integer;

Parameters

SourceThe bitmap data buffer to encode
InterpolateWrites the image interpolation flag when nonzero
SymbolExtractRequests symbol dictionary extraction when the active encoder backend supports it
UseExternalEncoderPrefers the external JBIG2 encoder backend when available
SkipBlackDotsEnables isolated black-dot cleanup before encoding when nonzero
BlackDotSizeMaximum isolated black-pixel cluster size removed during cleanup
LossyLevelCleanup aggressiveness hint from 0 to 9 for scanned monochrome input

Return values

Returns the new ImageID, or 0 when the buffer cannot be read or encoded

Remarks

Use this overload when a bitmap is already available in memory and the document should avoid a temporary file