ImageEn, unit imageenio

TImageEnIO.SaveToStreamIEN

TImageEnIO.SaveToStreamIEN


Declaration


procedure SaveToStreamIEN(Stream: TStream);


Description


Saves the current image in the connected TImageEnView to a stream in ImageEn's native format, which preserves the image and any layers.

Notes:
- An exception will be raised if the TImageEnIO is not attached to a TImageEnView
- If an internal save error is encountered Aborting will return true
- IEN_Compression cannot be ioTIFF.
- You can also save layers in PSD, SVG and PDF format


Example


// Save current layer configuration (compress images as jpeg)
ImageEnView1.IO.Params.IEN_Compression := ioJPEG;
ImageEnView1.IO.SaveToStreamIEN( Stream );

// Load saved layers
ImageEnView1.IO.LoadFromStreamIEN( Stream );


See Also


- IEN_Compression
- IEN_Description
- LoadFromStreamIEN
- SaveToFileIEN
- LayersSaveMergedTo