ImageEn, unit iemio

TImageEnMIO.ParamsFromBuffer

TImageEnMIO.ParamsFromBuffer


Declaration

function ParamsFromBuffer(Buffer: Pointer; BufferSize: Integer; Format: TIOFileType = ioUnknown): Boolean;


Description

Loads image parameters (but not the actual image) from the specified buffer. Result is false if a loading error is encountered due to a corrupt or non-standard image format.

Parameter Description
Buffer The buffer pointer
BufferSize The buffer length in bytes
Format Specifies the expected file format. If Format is ioUnknown, then try to find the format automatically

See also: LoadFromBuffer


Example

ImageEnView1.IO.ParamsFromBuffer(mybuffer, mybufferlength, ioJPEG);