将byte []转换为图像源? [英] Converting a byte[] into an image source?
问题描述
您好!
我知道有类似的问题,我想指出我在这些问题中尝试过提议的解决方案无济于事。我一直得到一个'不包含定义..'错误的方法,如BitmapImage.BeginInit(),
等,以及其他方法。我正在尝试在C#中为Metro Style Apps执行此操作,将byte []转换为图像源,以便我可以从我的XAML Image对象设置Binding。
你能帮助我吗? ?
谢谢!
如果此链接有帮助,请与我们联系 - http ://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/9b74c751-72f1-4772-8f8a-da0f24468758
-Sagar
Hello!
I know there have been similar questions to this, and I would like to point out that I have tried the proposed solutions in those questions to no avail. I keep getting a 'does not contain a definition..' error for methods such as BitmapImage.BeginInit(), etc. as well as the others. I am trying to do this in C# for Metro Style Apps, to convert a byte[] to an image source so I can set a Binding from my XAML Image object.
Can you help me?
Thanks!
Hi,
Let me know if this link helps - http://social.msdn.microsoft.com/Forums/en-US/winappswithcsharp/thread/9b74c751-72f1-4772-8f8a-da0f24468758
-Sagar
这篇关于将byte []转换为图像源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!