ImageEn, unit iemio




procedure SaveToFile(const FileName: string; FileFormat: TIOFileType = ioUnknown; SelectedOnly: Boolean = False);


Save all images in the attached TImageEnMView or TIEMultiBitmap to a multi-image format: GIF, TIFF, DCX, ICO, AVI, DICOM, PDF or PS.
if FileFormat is ioUnknown, the format is detected from the extension. Otherwise specify a multi-frame file format, which should be one of: ioGIF, ioTIFF, ioPS, ioPDF, ioDICOM, ioDCX, ioICO.
If SelectedOnly = True and the component is attached to a TImageEnMView then only the selected images are output to file.

- Only multi-frame formats are supported. Saving to a single frame format, such as JPEG, will result in an error (Aborting will return true). To save single frames of a TImageEnMView you can use Write for the relevant frame.
- 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.

ImageEn supports saving of multiple frames to GIF, TIFF, AVI, DCX, DICOM, ICO, PDF and PS formats.