获得Windows Phone 7的EXIF标签 [英] Get EXIF tags in Windows Phone 7
问题描述
我想我得到了在Windows Phone 7的我一直在使用ExifLib尝试图像的所有EXIF标签,但似乎无法得到它的权利。
I would like to get all the EXIF tags of an image I took in Windows Phone 7. I have tried using ExifLib, but can't seem to get it right.
在 CaptureImageAvailable
我有下面的代码我的事件处理程序:
In my event handler for CaptureImageAvailable
I have the following code:
JpegInfo info = ExifReader.ReadJpeg(e.ImageStream, "Pic.jpeg");
Dispatcher.BeginInvoke(delegate()
{
textBox1.Text = info.ExposureTime.ToString();
textBox2.Text = info.FNumber.ToString();
});
e.ImageStream.Close();
两者 textBox1的
和 TextBox2中
正在显示0。
我的Cam.Capture事件每隔200毫秒解雇。这是否对这些价值有什么影响?
My "Cam.Capture event" is fired every 200 milliseconds. Does this have any effect on these values?
任何帮助将不胜感激! :)
Any help would be greatly appreciated! :)
推荐答案
我觉得一切都确定了你的代码,这些值只是没有设置
I think everything is ok with your code, the values just aren't set.
下面证据表明,这不是你的错:
Here is evidence that it's not your fault:
-
有一个看的这个博客帖子这主要是在阅读EXIF数据的教程。在那里,你找到数据的截图:许多值设置,但你需要的是也为0。但我不知道这是否真的照片拍摄的手机摄像头
Have a look at this blog post which basically is a tutorial on reading EXIF data. There you find a screenshot of the data: many values are set but the ones you need are also 0. But I am not sure if this photo really was taken with the phone camera.
所以我测试自己和值如下;你需要的字段0以及
So I tested myself and the values are as follows; the fields you need are 0 as well:
Artist ""
Copyright null
DateTime "2011:11:01 20:50:07"
Description null
ExposureTime 0.0
FileName "\\Applications\\Data\\[GUID]\\Data\\PlatformData\\CameraCapture-[GUID].jpg.jpg"
FileSize 789355
Flash No
FNumber 0.0
GpsLatitude {double[3]}
GpsLatitudeRef Unknown
GpsLongitude {double[3]}
GpsLongitudeRef Unknown
Height 1944
IsColor true
IsValid true
LoadTime {00:00:00.1340000}
Make "HTC"
Model "7 Trophy"
Orientation TopRight
ResolutionUnit Inch
Software "Windows Phone 7.5"
ThumbnailData {byte[14913]}
ThumbnailOffset 518
ThumbnailSize 14913
UserComment null
Width 2592
XResolution 72.0
YResolution 72.0
看起来像做一些与EXIF每200ms是的不的原因。出于好奇,我曾在EXIF数据第二次看synching与PC机图片之后。该值只是不存在。对不起。
Looks like doing something with the EXIF every 200ms is not the cause. Out of curiosity I had a second look at the EXIF data after synching the pictures with the PC. The values are just not there. Sorry.
这篇关于获得Windows Phone 7的EXIF标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!