ImageEn, unit imageenio

TImageEnIO.LoadFromBuffer

TImageEnIO.LoadFromBuffer


Declaration


procedure LoadFromBuffer(Buffer: Pointer; BufferSize: Integer; Format: TIOFileType = ioUnknown);


Description


Loads an image from the specified buffer.

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: ParamsFromBuffer


Example


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