ImageEn, unit iexMetaHelpers |
|
ReadExifCameraFieldsFromFile
Declaration
function ReadExifCameraFieldsFromFile(const sFilename : string;
out sCameraModel : string;
out sExposureTime : string;
out sFlashMode : string
) : boolean;
Description
Retrieves camera related EXIF data from a file. The following properties are returned:
◼EXIF_Camera_Str
◼EXIF_ExposureTime2
◼EXIF_Flash
Returns false if
sFilename is not a file type that supports EXIF.
// Show Camera data for selected file
if ReadExifCameraFieldsFromFile( MyFileListBox.Filename, sCameraModel, sExposureTime, sFlashMode ) then
begin
lblCameraModel .Caption := sCameraModel;
lblExposureTime.Caption := sExposureTime;
lblFlashMode .Caption := sFlashMode;
end
else
begin
lblCameraModel .Caption := '';
lblExposureTime.Caption := '';
lblFlashMode .Caption := '';
end;