TIOParams.EXIF_GPSVersionID
Declaration
property EXIF_GPSVersionID: AnsiString;
Description
Indicates the version of the GPSInfoIFD tag.
Note: To save GPS data, you must set EXIF_GPSVersionID to '2.2.0.0' (or use the const,
GPS_Version_ID)
// Write EXIF data to the current file
ImageEnView1.IO.Params.EXIF_GPSLatitude := StrToFloat( edtEXIF_GPSLatitude.Text );
ImageEnView1.IO.Params.EXIF_GPSLongitude := StrToFloat( edtEXIF_GPSLongitude.Text );
ImageEnView1.IO.Params.EXIF_GPSVersionID := GPS_Version_ID;
ImageEnView1.IO.InjectJpegEXIF('D:\GPSStamped.jpg');
// Update the GPS EXIF data in a file
io := TImageEnIO.create(nil);
try
io.ParamsFromFile( FilenameStr );
io.Params.EXIF_GPSLatitude := GPSLatitudeFloat;
io.Params.EXIF_GPSLongitude := GPSLongitudeFloat;
io.Params.EXIF_GPSVersionID := GPS_Version_ID;
io.Params.EXIF_HasEXIFData := True;
io.InjectJpegEXIF( FilenameStr );
finally
io.Free;
end;