Partilhar via


Como: Ler Metadados de um Bitmap

Este exemplo mostra como ler metadados de bitmap usando a linguagem de consulta de metadados. For the complete sample, see Exemplo de BitmapMetadata.

Exemplo

' Add the metadata of the bitmap image to the text block.
Dim myTextBlock As New TextBlock()
myTextBlock.Text = "The Description metadata of this image is: " + pngInplace.GetQuery("/Text/Description").ToString()
// 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();