简体   繁体   English

监视窗口(屏幕截图)

[英]Monitor window (Screen capture)

I'm working on ac# wpf app in which I want a grid or rectangle to show the contents of a window in my application. 我正在使用ac#wpf应用程序,在该应用程序中我想要一个网格或矩形来显示应用程序中窗口的内容。 It should be like a monitor which constantly shows what happens in the other window (video is being played in in it). 它应该像一个监视器,不断显示另一个窗口中发生的情况(正在其中播放视频)。

Is there a good way to capture the screen or some other option? 是否有捕获屏幕或其他选项的好方法?

Thanks 谢谢

You can take a look at the VisualBrush class - that might be able to handle what you want. 您可以看一下VisualBrush类-它可能能够处理您想要的内容。 I don't know if it can handle cloning video but this example shows it copying a static part of the screen. 我不知道它是否可以处理克隆视频,但此示例显示了它复制屏幕的静态部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM