public void ReadExifData() { CultureInfo cult = new CultureInfo("en-US"); Photographer = Exif.GetAutor(this.Image); var coordinates = Exif.GetGpsCoordinates(this.Image); if (coordinates != null) { GpsLocation = coordinates[0].ToString(cult) + "," + coordinates[1].ToString(cult); CountryName = CountryNames.GetCountryName(coordinates); } }
public bool SetExifData() { try { Image = Exif.SetAutor(Photographer, Image); Image = Exif.SetCountryName(CountryName, Image); var coordinates = TypeConverter.GetCoordsFromString(GpsLocation); Image = Exif.SetGpsCoordinates(coordinates, Image); return(true); } catch (Exception e) { MessageBox.Show("Daten fehlerhaft: " + e.Message); return(false); } }