TIOParams.EXIF_UserComment
Declaration
property EXIF_UserComment: WideString
Description
Provides an alternative tag for storing textual data (keywords, comments, etc) with the image instead of
EXIF_ImageDescription (which has character code limitations).
Note: You must specify how the string is coded (ASCII or Unicode) using the
EXIF_UserCommentCode property.
// Write our comment to the file
ImageEnView1.IO.LoadFromFile('C:\input.jpg');
ImageEnView1.IO.Params.EXIF_UserComment := 'Hello World!';
ImageEnView1.IO.Params.EXIF_UserCommentCode := IEExifUserCommentCode_Unicode;
ImageEnView1.IO.Params.EXIF_HasEXIFData := true;
ImageEnView1.IO.SaveToFileTIFF('D:\test.tiff');
// Read back the comment
ImageEnView1.IO.LoadFromFileTIFF('D:\test.tiff');
ShowMessage( ImageEnView1.IO.Params.EXIF_UserComment );