O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Decoding Images

With the BitmapDecoder class in the Windows.Graphics.Imaging namespace, Windows Store and universal apps get access to the decoding process that occurs automatically when displaying image content in an Image element. This enables you to do interesting things, such as getting the pixel data for an image file, or retrieving any metadata stored inside, such as tagged people.

To demonstrate BitmapDecoder throughout this section, we’ll start with a method almost identical to the ShowUserSelectedFile example from a previous FAQ sidebar:

async Task DecodeUserSelectedFile(){  // Get a JPEG from the user  FileOpenPicker picker = new FileOpenPicker();  picker.FileTypeFilter.Add(".jpg");  picker.FileTypeFilter.Add( ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required