ImageEn, unit iexMetaHelpers

TIEMetaListView.SaveMetaToFile

TIEMetaListView.SaveMetaToFile


Declaration

function SaveMetaToFile(const Filename: String; AMetaTypes: TIEMetaTypes = []): Boolean;


Description

Injects or updates the EXIF, IPTC and/or Dicom values in a file with the values specified in the control.
if AMetaTypes is [], all editable types (iemEXIF, iemIPTC and iemDicom) will be saved.

Note: An exception will be raised if the image file does not exist, or the file type does not support that data type


Example

// Save changes to the current EXIF and IPTC meta data
IEMetaListView1.SaveMetaToFile( ImageEnView1.IO.Params.Filename, [ iemEXIF, iemIPTC ]);

// Save changes to the current Dicom tags
IEMetaListView1.SaveMetaToFile( ImageEnView1.IO.Params.Filename, [ iemDICOM ]);