ImageEn, unit iexMetaHelpers |
|
TListViewHelper.WriteListToExif
Declaration
function WriteListToExif(IOParams : TIOParams) : Boolean; overload;
function WriteListToExif(const sFilename : string) : Boolean; overload;
Description
Write the changes made by a user to EXIF values in a TListView (which was initialized using
NewListForExif or
ReadListFromExif) to the current image or an image file.
Result is true if any changes were made to the EXIF properties (i.e. a result of false means the TListView EXIF content matches the file).
NOTE: A standard TListView does not permit editing of subitems, so either download a TListView descendent that allows editing, or search for code snippets for "Edit Subitems TListView"
Other Notes:
- For first overload, only the
TIOParams is updated, the changes are not saved to file.
- For the second overload, the file must already exist! If no changes were made to the EXIF data then the file is not modified
Examples
// Write changes to EXIF properties of the current image, and ask if the user wants to save changes if any fields were modified
if MyExifListView.WriteListToExif( ImageEnView1.IO.Params ) then
PromptToSaveFile;
// write EXIF changes to a file
MyExifListView.WriteListToExif( 'D:\MyImage.jpeg' );