ImageEn, unit imageenio

TImageEnIO.LoadFromBuffer

TImageEnIO.LoadFromBuffer

Declaration

function LoadFromBuffer(Buffer: Pointer; BufferSize: Integer; FileType: TIOFileType = ioUnknown): Boolean;

Description

Loads an image from the specified buffer.
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)

Result is False if the resource could not be loaded.

Example

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

See Also

ParamsFromBuffer