我如何prevent打印屏幕 [英] How do I prevent print screen

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

问题描述

我有一个应用程序,我的工作是在prevent从能够轻松捕捉屏幕的内容的用户的要求。

I have a requirement that an application I am working on prevent the user from being able to easily capture the contents of the screen.

我已经传达,有没有可行的办法来彻底发生prevent这一点,但我正在寻找方法来介绍一些障碍的过程。

I have communicated that there is no feasible way to completely prevent this from happening, but I'm looking for methods to introduce some hurdles to the process.

我使用C#/。NET 2.0和WinForms

I'm using C#/.NET 2.0 and WinForms

推荐答案

您不能。

你可以做的最好的就是渲染到硬件加速设备上的叠加,类似于用于视频播放器的事。基本上,你画你的整个窗口的蓝色,并渲染图形到视频卡,并在内部显卡将取代蓝色的图形。这样做的缺点是你必须使用WinForms控件放弃,我不知道有什么方法可以轻松地做到这一点的。NET。我认为,如果你使用 DirectShow.NET ,他们的样本之一,是把自己的图形到流。

The best you can do is render to a hardware accelerated device on an overlay, similar to what video players used to do. Basically, you paint your entire window blue, and render your graphics onto the video card, and internally the video card will replace the blue with the graphics. The downside to this is you have to give up using winforms controls, and I don't know of any way to do this with .NET easily. I think if you use DirectShow.NET, one of their samples is putting your own graphics into a stream.

即使做了这一切之后,它仍然可能得到一个屏幕截图。只取画面的画面用数码相机。

Even after doing all of that, it's still possible to get a screenshot. Just take a picture of the screen with a digital camera.

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

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