THotPDF.DecodeLoadedCCITTStream Method
Method summary: THotPDF.DecodeLoadedCCITTStream MethodCCITTFaxDecode image stream into a 24-bit bitmap
Declaration
function DecodeLoadedCCITTStream(AImageStream: THPDFStreamObject): TBitmap;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
AImageStream | Loaded PDF stream object containing CCITT image dataCCITTFaxDecode |
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 - The caller owns the returned bitmap instance
Related APIs
- THotPDF
- THotPDF.GetLoadedImageCount Method
- THotPDF.GetLoadedImageInfo Method