如何从xml文件中读取图像 [英] how to read image from xml file
本文介绍了如何从xml文件中读取图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个XML文件。因为我有图像标签。
因为我是mvvm和linq对XML的新手。
i无法读取图像标签图片。并希望使用xaml和mvvm在图像框中显示。
请帮助我。
Hi,
I have an XML file. in that i have image tag.
as i am new to mvvm and linq to XML.
i am not able to read image tag with image. and want to display in image box using xaml and mvvm.
Please help me.
推荐答案
你可以使用类System.Windows.Media.Imaging.BitmapImage
,请参阅上面的MSDN文章,其中包含代码示例:
http://msdn.microsoft.com/en-us /library/system.windows.media.imaging.bitmapimage%28v=vs.110%29.aspx [ ^ ]。
-SA
You can use the classSystem.Windows.Media.Imaging.BitmapImage
, see the MSDN article on it with code samples:
http://msdn.microsoft.com/en-us/library/system.windows.media.imaging.bitmapimage%28v=vs.110%29.aspx[^].
—SA
这篇关于如何从xml文件中读取图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文