TJBIG2DecodeResult Record
Carries the decoded bitmap geometry and per-scanline pixel rows produced by a JBIG2 region decode
Declaration
TJBIG2DecodeResult= record
Width: Integer;
Height: Integer;
ScanlineByteWidth: Integer;
Scanlines: TJBIG2ScanlineArray;
end;
Unit
HPDFTypes
Fields
| Field | Purpose |
|---|---|
Width | Decoded region width in pixels |
Height | Decoded region height in pixels; Length(Scanlines) matches this value |
ScanlineByteWidth | Bytes per packed 1-bit row, byte-aligned |
Scanlines | One packed monochrome byte row per scanline, top row first; 1 bits are black |
Usage notes
- Passed by reference through the decoder API and
TJBIG2RegionDecodeCallback; custom decoders fill it in place of the built-in one - Call the HPDFJBIG2 cleanup helper before reusing or discarding a record to release the row buffers
- Consume the rows together with
ScanlineByteWidth; row length can exceed the packed width ofWidthbits