How do I retrieve the properties of a photo taken on a digital camera using .NET?

北城以北 提交于 2019-12-04 08:39:31

The following article should be helpful.

I maintain a library that offers comprehensive support for extracting image metadata from a variety of file formats.

https://github.com/drewnoakes/metadata-extractor-dotnet

When I built something similar I used this article quite a bit. But basically you're looking for the EXIF data embedded in the image.

There are a number of great libraries to extract it for you, if you don't want to write it from scratch.

You probably want to use the BitmapMetadata class in the System.Windows.Media.Imaging namespace.

There is a BitmapMetadata sample that can be downloaded from MSDN.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!