[英]How do I convert a WPF window to a bitmap?
I want to take screen shots of all the windows associated with an application and allow the user to edit them. 我想拍摄与应用程序关联的所有窗口的屏幕快照,并允许用户对其进行编辑。 I am not sure how to convert a window to a bitmap image though.
我不确定如何将窗口转换为位图图像。
I want to do something like this... 我想做这样的事情...
WindowCollection handles = Application.Current.Windows;
List<Image> windowList = new List<Image>();
foreach (Window window in handles)
{
do something here to turn each window into a bitmap
windowList.Add(bitmapFromWindow)
}
I have found related questions, but nothing that answers my question. 我找到了相关的问题,但没有任何答案可以回答我的问题。 If you find any related resources please post.
如果您找到任何相关资源,请发布。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.