ImageEn, unit iemio

TImageEnMIO.ParamsFromStream

TImageEnMIO.ParamsFromStream

Declaration

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

Description

Reads the image properties 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.

Stream is a TStream that contains the image.
FileType specifies the image format of the stream or file. If ioUnknown is specified then the file content is analyzed to determine the format (using FindStreamFormat).