How to read GPS Coordinates from JPG EXIF using CCR.EXIF in Delphi?

前端 未结 3 1235
余生分开走
余生分开走 2021-01-20 02:32

It\'s quite easy setting the GPS coordinates using the GPSLatitude and GPSLatitude properties Assign method, but reading the coords has me stumped. I\'ve trying to access th

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-20 03:19

    Easy way to extract GPS information as a string:

    var myLat, myLong : string;
    ...
    myLat := myJpeg.ExifData.GPSLatitude.AsString ; 
    myLong := myJpeg.ExifData.GPSLongitude.AsString ;
    

提交回复
热议问题