How to get the date / time when the image was taken using CCR EXIF?

using EXIF DATA-site CCR http://delphihaven.wordpress.com/ccr-exif/ how I can get the time at which the picture was taken?

(I am open to using something else as long as I can use Delphi, but everyone says CCR EXIF ​​is better, I just can't find it in sparse documents)

+3
source share
1 answer

Try using this (note that I have not tested this, just checked the tag DateTimeOriginalagainst the fact that the DateTimeOriginalproperty returns and they match).

uses
  CCR.Exif;

procedure ShowDateTimeOriginal(const FileName: string);
var
  ExifData: TExifData;
begin
  ExifData := TExifData.Create;
  try
    ExifData.LoadFromGraphic(FileName);
    ShowMessage(DateTimeToStr(ExifData.DateTimeOriginal));
  finally
    ExifData.Free;
  end;
end;
+4
source

All Articles