TImageEnIO.ParamsFromBuffer
Declaration
function ParamsFromBuffer(Buffer: Pointer; BufferSize: Integer; FileType: 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 |
| FileType | Specifies the file format of the image. If ioUnknown is specified, the format is detected automatically by reading the image header (using FindStreamFormat) |
Example
ImageEnView1.IO.ParamsFromBuffer(mybuffer, mybufferlength, ioJPEG);
See Also
◼LoadFromBuffer