Reading Metadata

Some image formats support embedded metadata that reveals all kinds of things about when and where a photo was taken; what camera, flash, and lens was used; people in the photo; and so on. There are three different ways to read this metadata, each one more powerful than the previous one:

Reading ImageProperties from a file

Reading common BitmapProperties from a decoder

Reading raw metadata with a metadata query language

Reading (and Writing) ImageProperties from a File

The first way to access basic image metadata doesn’t actually require a BitmapDecoder (or even opening the file yourself). The StorageFile object returned from APIs such as the file picker exposes many collections of metadata values represented by the following ...

Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.