ImageEn, unit ievect

TImageEnVect.SaveToFileAll

TImageEnVect.SaveToFileAll


Declaration


function SaveToFileAll(const fileName: string; imageCompression: TIOFileType): Boolean;


Description


Saves all layers and vectorial objects in one single file. This is like consecutive calls to LayersSaveToXXX and SaveToFileIEV.

ImageCompression specifies how compress the background image and the layers (cannot be ioTIFF).
If ImageCompression is -1, the image is saved using an internal format which preserves pixel format and alphachannel.

Note: If an internal save error is encountered Aborting will return true. Saving issues due to insufficient write permissions and disk write failures will raise an exception.


Example


ImageEnVect1.SaveToFileAll('file.my', ioPNG);
..
ImageEnVect1.LoadFromFileAll('file.my');


See Also


- LoadFromFileAll
- LoadFromStreamAll
- SaveToStreamAll
- LoadFromFileIEV
- SaveToFileIEV
- LoadFromStreamIEV
- SaveToStreamIEV