ImageEn, unit imageenio

TImageEnIO.ParamsFromStream

TImageEnIO.ParamsFromStream


Declaration

function ParamsFromStream(Stream: TStream; Format: TIOFileType = ioUnknown): Boolean;


Description

Reads the image properties and meta-data without loading the image (and without changing the current image).
Result is false if a loading error is encountered due to a corrupt or unknown image format.

Parameter Description
Stream TStream that contains the image
Format Image format of the stream. If ioUnknown is specified then the file content is analyzed to determine the format

Note: You do NOT need to call ParamsFromStream if you are already loading the image, e.g using LoadFromStream