THotPDF.DecodeLoadedCCITTStream Method
Method summary: THotPDF.DecodeLoadedCCITTStream MethodCCITTFaxDecode image stream into a 24-bit bitmap
Declaration
function DecodeLoadedCCITTStream(AImageStream: THPDFStreamObject;
EncodedData: TStream= nil): TBitmap;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AImageStream | Loaded PDF stream object containing CCITT image dataCCITTFaxDecode |
EncodedData | Optional bytes of the image after every filter that precedes the CCITT stage; when omitted, the stored stream is read |
Return value
Bitmap containing the decoded imageTBitmap, or nil when the stream parameters or encoded data are invalid
Usage notes
- Group 3 one-dimensional, Group 3 mixed two-dimensional, and Group 4 rows are supported, including the T.4 and T.6 uncompressed extension codes
- The decoder applies
K,Columns,Rows,BlackIs1,EndOfLine,EncodedByteAlign,EndOfBlock, andDamagedRowsBeforeErrorfrom the resolvedDecodeParmsdictionary - Damaged-row recovery is available only when
EndOfLineis true andKis non-negative; resynchronisation is bounded by the encoded stream length - Pass
EncodedDatawhen the caller already holds the partially filtered image bytes, for example after earlier decode stages; leave it nil to let the method read the stored stream itself - The caller owns the returned bitmap instance