屏幕截图的屏幕覆盖 [英] Screen Overlay For Screenshot

查看:99
本文介绍了屏幕截图的屏幕覆盖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过C#在整个屏幕上覆盖一个灰色的半透明区域.这可以通过Windows窗体来完成吗?我将如何去做呢?

I would like to overlay a gray, translucent area over the entire screen through C#. Is this possible to do through Windows Forms and how would I go about doing this?

推荐答案

当然,只需创建一个覆盖所有桌面屏幕的无边界半透明窗口即可.

Sure, just create a borderless, translucent window that covers all of the desktop screens.

您可以使用以下LINQ找到合适的Rectangle来覆盖所有屏幕:

You can find the right Rectangle to cover all of the screens with the following LINQ:

Rectangle bounds = Screen.AllScreens
                       .Select(x => x.Bounds)
                       .Aggregate(Rectangle.Union);

然后从 bounds

这篇关于屏幕截图的屏幕覆盖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆