如何:从位图读取元数据

更新:2007 年 11 月

此示例演示如何使用元数据查询语言来读取位图元数据。有关完整示例,请参见 BitmapMetadata 示例

示例

' 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();