所以我想知道是否有办法阻止程序截取屏幕截图或允许程序截取屏幕截图但是图像变暗。
拍摄截屏的程序如下:
using System.Drawing.Imaging;
namespace ScreenCapture
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{}
private void PrintScreen()
{
Bitmap printscreen = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
Graphics graphics = Graphics.FromImage(printscreen as Image);
graphics.CopyFromScreen(0, 0, 0, 0, printscreen.Size);
printscreen.Save(@"C:\Temp\printscreen.jpg", ImageFormat.Jpeg);
}
private void button1_Click(object sender, EventArgs e)
{
PrintScreen();
}
}
}
如果我处理PrintScr返回null它会起作用吗?
P.S。 :它不像我想阻止一个程序截取它的截图,我想阻止程序拍摄完整的桌面屏幕
基本上,我有一个程序每分钟都会截取屏幕截图,即监控用户的活动。我想创建一个程序来使它无效。 不要停止程序