WPF:如何显示Visual(窗口)的图像 [英] WPF: How to Display Image of Visual (window)
本文介绍了WPF:如何显示Visual(窗口)的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在图像控件中显示主窗口的视图。
看起来很简单在wpf中从视觉中获取一个Bitmap - 在这种情况下是窗口。
但我没有把它带到Image控件的运气。
任何人都可以帮助我吗?
Hi,
I want to display a view of the main window in an image control.
It seems to be pretty easy in wpf to get a Bitmap from the visual - the window in this case.
But i had no luck in bringing it to the Image control.
Could anyone help me?
推荐答案
到达此页面:
http://stackoverflow.com/questions/5124825/generating-a-screenshot-of-a-wpf-window [ ^ ]
下次,从这里开始这里,其他或此处。
Get to this page:
http://stackoverflow.com/questions/5124825/generating-a-screenshot-of-a-wpf-window[^]
Next time, start from here here, here or here.
这篇关于WPF:如何显示Visual(窗口)的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文