Preferably in VB.Net, but C# is fine, how can I access the extra properties added to a file by my digital camera, like Date Picture Taken
, Shutter Speed
or Camera Model
?
相关问题
- Generic Generics in Managed C++
- How to Debug/Register a Permanent WMI Event Which
- 'System.Threading.ThreadAbortException' in
- Bulk update SQL Server C#
- Should I use static function in c# where many call
The following article should be helpful.
You probably want to use the
BitmapMetadata
class in theSystem.Windows.Media.Imaging
namespace.There is a
BitmapMetadata
sample that can be downloaded from MSDN.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.
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