ImageEn, unit iexBitmaps

TIOParams.EXIF_FNumber

TIOParams.EXIF_FNumber


Declaration

property EXIF_FNumber: Double;


Description

The actual F-number (F-stop) of the lens when the photo was taken.

Note: Use EXIF_FNumber2 for easier access to the value.


Example

if ( ImageEnView1.IO.Params.EXIF_Fnumber <> 0 ) and ( ImageEnView1.IO.Params.EXIF_Fnumber <> -1 ) then
  sExifFNumber := 'f/' + FloatToStr( ImageEnView1.IO.Params.EXIF_FNumber )
else
  sExifFNumber := '';

// And write back...
if ( sExifFNumber <> '' ) and ( uppercase( sExifFNumber )[ 1 ] = 'f' ) and ( uppercase( sExifFNumber )[ 1 ] = '/' ) then
  delete( sExifFNumber , 1, 2 );
ImageEnView1.IO.Params.EXIF_FNumber := StrToFloatDef( sExifFNumber, 0 );