You've already forked lazarus-ccr
fpexif: Add introductory readme.txt; minor improvements in console_demo. New method TExifData.Save.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6084 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -29,12 +29,16 @@ begin
|
||||
WriteLn(tag.AsString);
|
||||
|
||||
// (2) shutter speed used when taking the photo
|
||||
Write('Shutter speed: ':20);
|
||||
tag := imgInfo.ExifData.TagByName['ShutterSpeed'];
|
||||
if tag = nil then
|
||||
WriteLn('--- not available in this file ---')
|
||||
if tag <> nil then
|
||||
WriteLn('Shutter speed: ':20, tag.AsString)
|
||||
else
|
||||
WriteLn(tag.AsString);
|
||||
begin
|
||||
// (3) Sometimes alternative tags are availabe
|
||||
tag := imgInfo.ExifData.TagByName['ExposureTime'];
|
||||
if tag <> nil then
|
||||
WriteLn('Exposure time: ':20, tag.AsString);
|
||||
end;
|
||||
|
||||
// Add user comment
|
||||
imgInfo.ExifData.TagByName['UserComment'].AsString := 'This is my favorite photo.';
|
||||
@ -62,6 +66,7 @@ begin
|
||||
imgInfo.Free;
|
||||
end;
|
||||
|
||||
WriteLn;
|
||||
WriteLn('Press ENTER to quit...');
|
||||
ReadLn;
|
||||
|
||||
|
Reference in New Issue
Block a user