TJBIG2RegionDecodeCallback Type
Defines a bounded region-decoder callback that returns pixels, decode status, and work statistics
Declaration
TJBIG2RegionDecodeCallback= Function(Const ImageData,
GlobalData: TJBIG2ByteArray; RegionLeft, RegionTop, RegionWidth,
RegionHeight: Integer; Var DecodeResult: TJBIG2DecodeResult;
Var Stats: TJBIG2RegionDecodeStats): Boolean;
Unit
HPDFJBIG2
Usage notes
- The callback receives complete image and global segments plus the requested source rectangle
- Return False when the backend cannot satisfy the request and populate Stats only with work actually completed