This documentation is archived and is not being maintained.

How to: Read Metadata from a Bitmap

This example shows how to read bitmap metadata using the metadata query language. For the complete sample, see BitmapMetadata Sample.

// Add the metadata of the bitmap image to the text block.
TextBlock myTextBlock = new TextBlock();
myTextBlock.Text = "The Description metadata of this image is: " + pngInplace.GetQuery("/Text/Description").ToString();