exiflib

How to Fetch the Geotag details of the captured image or stored image in Windows phone 8

北城以北 提交于 2019-12-03 09:36:26
问题 I want to fetch the information from the image regarding the Geolocation as shown in the image below void cam_Completed(object sender, PhotoResult e) { if (e.TaskResult == TaskResult.OK) { Image cameraImage = new Image(); BitmapImage bImage = new BitmapImage(); bImage.SetSource(e.ChosenPhoto); cameraImage.Source = bImage; e.ChosenPhoto.Position = 0; ExifReader reader = new ExifReader(e.ChosenPhoto); double gpsLat, gpsLng; reader.GetTagValue<double>(ExifTags.GPSLatitude, out gpsLat)) reader

How to Fetch the Geotag details of the captured image or stored image in Windows phone 8

随声附和 提交于 2019-12-02 23:59:05
I want to fetch the information from the image regarding the Geolocation as shown in the image below void cam_Completed(object sender, PhotoResult e) { if (e.TaskResult == TaskResult.OK) { Image cameraImage = new Image(); BitmapImage bImage = new BitmapImage(); bImage.SetSource(e.ChosenPhoto); cameraImage.Source = bImage; e.ChosenPhoto.Position = 0; ExifReader reader = new ExifReader(e.ChosenPhoto); double gpsLat, gpsLng; reader.GetTagValue<double>(ExifTags.GPSLatitude, out gpsLat)) reader.GetTagValue<double>(ExifTags.GPSLongitude, out gpsLng)) MessageBox.Show(gpsLat.ToString() + "" + gpsLng

Is ExifLib usable in a WPF / XAML app?

不羁的心 提交于 2019-12-02 07:45:13
问题 I want to extract exif data from jpg images. ExifLib seemed like a good choice to simplify this chore, and so I installed it via NuGet. I then tried to get started using the sample code from here (commenting out the MessageBox code for now): using (ExifReader reader = new ExifReader(@"C:\temp\testImage.jpg")) { // Extract the tag data using the ExifTags enumeration DateTime datePictureTaken; if (reader.GetTagValue<DateTime>(ExifTags.DateTimeDigitized, out datePictureTaken)) { // Do whatever

Is ExifLib usable in a WPF / XAML app?

醉酒当歌 提交于 2019-12-02 06:42:50
I want to extract exif data from jpg images. ExifLib seemed like a good choice to simplify this chore, and so I installed it via NuGet. I then tried to get started using the sample code from here (commenting out the MessageBox code for now): using (ExifReader reader = new ExifReader(@"C:\temp\testImage.jpg")) { // Extract the tag data using the ExifTags enumeration DateTime datePictureTaken; if (reader.GetTagValue<DateTime>(ExifTags.DateTimeDigitized, out datePictureTaken)) { // Do whatever is required with the extracted information //System.Windows.MessageBox.Show(this, string.Format("The