GetImageListItemNativeFormat

Images

Description

Classifies the filter chain of one image-list item's original still-encoded PDF stream

Syntax

Delphi

Function GetImageListItemNativeFormat(ImageListID, ImageIndex: Integer): WideString;

Return values

jpegThe filter chain contains DCTDecode
jpxThe filter chain contains JPXDecode
jbig2The filter chain contains JBIG2Decode
ccittThe filter chain contains CCITTFaxDecode
flateThe stream uses only FlateDecode
rawThe stream has no filter
unknownThe indexed item is invalid, malformed or uses an unclassified filter chain
Empty stringImageListID is not a valid image-list handle

Failure behavior

The function does not raise an error for an invalid handle or 1-based item index and returns an empty string or unknown as described above

Remarks

The value describes the bytes returned by GetImageListItemNativeDataToString, not a decoded bitmap format. When a filter array contains a recognized compressed image codec, that codec takes precedence over other filters

See also

GetImageListItemNativeDataToString, SaveImageListItemNativeDataToFile, GetImageListItemFormatDesc