Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Initialize TiffFormat object.
  2. Get EXIF properties in ExifInfo object using TiffFormat.GetExifInfo().
  3. Access any EXIF property using ExifInfo object i-e ExifInfo.ExifIfdData.BodySerialNumber.

Following code snippet gets EXIF properties of a Tiff image and displays on the screen. 

...

  1. Initialize TiffFormat.
  2. Get EXIF properties in ExifInfo object using TiffFormat.GetExifInfo().
  3. Assign value to desired EXIF property i-e ExifInfo.ExifIfdData.ExifIfdData.UserComment="New User Comment".
  4. Save image using TiffFormat.Save("output.tif") to commit changes.

...

  1. Initialize Stream using Stream stream = File.Open(@"d:\output.tiff", FileMode.OpenOrCreate, FileAccess.ReadWrite)
  2. Initialize TiffFormat.
  3. Get EXIF properties in ExifInfo object using TiffFormat.GetExifInfo().
  4. Assign value to desired EXIF property i-e ExifInfo.ExifIfdData.UserComment="New User Comment".
  5. Save image using TiffFormat.Save(Stream) to commit changes.

...

  1. Initialize TiffFormat.
  2. Assign value to desired EXIF property i-e TiffFormat.ExifValues.ExifIfdData.UserComment="New User Comment".
  3. Save image using TiffFormat.Save("output.tif") to commit changes.

...