THotPDF.DecodeLoadedCCITTStream Method

Decodes a loaded CCITTFaxDecode image stream into a 24-bit bitmap

Declaration

function DecodeLoadedCCITTStream(AImageStream: THPDFStreamObject;
  EncodedData: TStream= nil): TBitmap;

Unit

HPDFDoc

Parameters

NamePurpose
AImageStreamLoaded image stream whose filter chain contains CCITTFaxDecode
EncodedDataOptional bytes of the image after every filter that precedes the CCITT stage; when omitted, the stored stream is read

Return value

Returns the decoded TBitmap, or nil when the stream parameters or encoded data are invalid

Usage notes

Related APIs