本文整理匯總了VB.NET中System.Windows.Media.Imaging.InPlaceBitmapMetadataWriter.TrySave方法的典型用法代碼示例。如果您正苦於以下問題:VB.NET InPlaceBitmapMetadataWriter.TrySave方法的具體用法?VB.NET InPlaceBitmapMetadataWriter.TrySave怎麽用?VB.NET InPlaceBitmapMetadataWriter.TrySave使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Windows.Media.Imaging.InPlaceBitmapMetadataWriter
的用法示例。
在下文中一共展示了InPlaceBitmapMetadataWriter.TrySave方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的VB.NET代碼示例。
示例1: PngBitmapDecoder
Dim pngStream As New System.IO.FileStream("smiley.png", FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite)
Dim pngDecoder As New PngBitmapDecoder(pngStream, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default)
Dim pngFrame As BitmapFrame = pngDecoder.Frames(0)
Dim pngInplace As InPlaceBitmapMetadataWriter = pngFrame.CreateInPlaceBitmapMetadataWriter()
If pngInplace.TrySave() = True Then
pngInplace.SetQuery("/Text/Description", "Have a nice day.")
End If
pngStream.Close()