THPDFJBIG2Encoder.EncodeToByteArray Method

Encodes one-bit scanlines into JBIG2 image bytes with an overload for global segments and explicit options

Declaration

Function EncodeToByteArray(Const Scanlines: TJBIG2ScanlineArray; Width, Height: Integer; Var ImageData: TJBIG2ByteArray): Boolean; Overload;
Function EncodeToByteArray(Const Scanlines: TJBIG2ScanlineArray; Width, Height: Integer; Var ImageData, GlobalData: TJBIG2ByteArray; Const Options: TJBIG2EncodeOptions): Boolean; Overload;

Unit

HPDFJBIG2

Parameters

NamePurpose
ScanlinesInput used by EncodeToByteArray
WidthPage coordinate or size value expressed in the current HotPDF coordinate space
HeightPage coordinate or size value expressed in the current HotPDF coordinate space
ImageDataRaw byte payload embedded or validated by this API
GlobalDataRaw byte payload embedded or validated by this API
OptionsInput used by EncodeToByteArray

Return value

Returns a Boolean value

Usage notes

Related APIs