ImageEn, unit imageenio

TImageEnIO.ParamsFromStream

TImageEnIO.ParamsFromStream

Declaration

function ParamsFromStream(Stream: TStream; FileType: 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
FileType Specifies the file format of the image. If ioUnknown is specified, the format is detected automatically by reading the image header (using FindStreamFormat)

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