直通VB.net/C#有没有办法读取掀起了JPEG来告诉我们,如果照片拍摄于横向或纵向任何元数据?
Thru VB.net/C# is there any way to read any metadata of off a JPEG to tell if the photo was taken in landscape or portrait?
我会假设一个摄像头都需要一个加速度首先要甚至告诉什么方向了......正确的?假设有那样的智慧来检测倾斜的角度,我将如何去阅读这些信息从一个JPEG?
I would assume a camera would need an accelerometer first of all to even tell what direction is up...correct? Assuming there is that kind of intelligence to detect the angle of tilt, how would I go about reading that info from a JPEG?
我发现了一些样品在线阅读用VB元/ .NET不知道读什么书找到我需要的信息。
I found some samples online to read metadata with vb/.net not sure what to read to find the info i need.
鸭preciate任何指针.....
Appreciate any pointers.....
这个项目应该做你想要的:
This project should do what you want:
http://www.$c$cproject.com/KB/graphics/exifextractor.aspx
和这家伙已经有了一个实现:
And this guy already has an implementation:
http://dotmac.rationalmind.net/2009/08/correct-photo-orientation-using-exif/