System.windows.controls.image [英] System.windows.controls.image
本文介绍了System.windows.controls.image的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在System.Windows.Controls.Image中预览System.Drawing.Image.
但是,当我将它们同时分配给我时,这将给我带来明确的转换错误
像这样的代码;
I want to preview a System.Drawing.Image in a System.Windows.Controls.Image.
But, when I assign them to both that gives me Explicitly conversion error
code Like that;
System.windows.controls.image img = new system.windows.controls.image();
system.drawing.image p = Function();
img = p ; // gives me error
如何在此图像控件中预览?有人可以帮我吗?
How can I preview that in this image control? Can anyone help me?
推荐答案
通过Google搜索,我找到了这些链接.我不知道他们是否会帮助您:
http://blogs.msdn.com/b/llobo/存档/2007/03/08/bitmapsource-bitmap-interop.aspx [ http://jmorrill.hjtcentral.com/Home/tabid/428/BlogID/14/Default.aspx [ ^ ]
我*认为*我在家有处理这个问题的代码,但是我再也不能回到家六个小时了.
With a google search, I found these links. I don''t know if they''ll help you or not:
http://blogs.msdn.com/b/llobo/archive/2007/03/08/bitmapsource-bitmap-interop.aspx[^]
http://jmorrill.hjtcentral.com/Home/tabid/428/BlogID/14/Default.aspx[^]
I *think* I have code at home that handles this, but I won''t be back home for another six hours.
这篇关于System.windows.controls.image的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文