ImageEn, unit imageenio

TImageEnIO.LoadFromText

TImageEnIO.LoadFromText


Declaration

procedure LoadFromText(const FileName: WideString; TextFormat: TIETextFormat = ietfBase64);
procedure LoadFromText(Stream: TStream; TextFormat: TIETextFormat = ietfBase64);


Description

Loads image from text.
Parameter Description
FileName Input file name.
Stream Input stream.
TextFormat Input text format. Only ietfBase64 is currently supported.

See Also: SaveToText


Example

// save as base64 (inside there is a jpeg)
ImageEnView1.IO.LoadFromFile('image.jpg');
ImageEnView1.IO.SaveToText('image.base64', ioJpeg, ietfBase64);

// reload back
ImageEnView1.IO.LoadFromText('image.base64', ietfBase64);