goldengel / exiflibrary

Automatically exported from code.google.com/p/exiflibrary
MIT License
0 stars 0 forks source link

Altitude tags #29

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Altitude tags are missing:

* Original message from sdecorme at CP *

file.Properties[ExifTag.GPSAltitude] = new GPSAltitude (ExifTag.GPSAltitude, 
Altitude, 0, 0); // Don't work
or
file.Properties[ExifTag.GPSAltitude] = ExifEnumProperty <GPSAltitude> 
(ExifTag.GPSAltitude, Altitude, 0, 0);// Don't work too

Original issue reported on code.google.com by oozcitak on 21 Dec 2010 at 2:13

GoogleCodeExporter commented 8 years ago
GPSAltitude is a rational value. With v0.15 of the library, following should 
work:

var file = ImageFile.FromFile("path/to/jpeg");

file.Properties.Set(ExifTag.GPSAltitude, 83.5);
file.Properties.Set(ExifTag.GPSAltitudeRef, GPSAltitudeRef.AboveSeaLevel);

Original comment by oozcitak on 29 Dec 2010 at 4:08