net c#怎么做屏蔽截图
net c#怎么做屏蔽截图 --------------------编程问答--------------------Image myImage = new Bitmap(300, 200);--------------------编程问答-------------------- 屏蔽截图??? --------------------编程问答-------------------- Rectangle R = System.Windows.Forms.Screen.PrimaryScreen.Bounds;
Graphics g = Graphics.FromImage(myImage);
g.CopyFromScreen(new Point(),new Point(),Screen.PrimaryScreen.Bounds.Size);
IntPtr dc1 = g.GetHdc();
g.ReleaseHdc(dc1);
this.pictureBox1.Image = myImage;
Image img = new Bitmap(R.Width, R.Height);
Graphics G = Graphics.FromImage(img);
G.CopyFromScreen(new Point(0, 0), new Point(0, 0), new Size(R.Width, R.Height));。
IntPtr dc = G.GetHdc();
G.ReleaseHdc(dc);
G.Dispose();
img .Save("c:\\a.jpg");
或
private static extern bool BitBlt(IntPtr hdcDest,int nXDest,int nYDest,int nWidth,int nHeight,IntPtr hdcSrc,int nXSrc,int nYSrc,Int32 dwrop);
http://topic.csdn.net/u/20090702/11/845f5ac5-48f2-463a-8271-47c5eeb33cab.html --------------------编程问答--------------------
字大概是错了吧. --------------------编程问答--------------------
错了? --------------------编程问答-------------------- =A=那是虾米,难道是做个服务不让用户使用截图功能? --------------------编程问答-------------------- 我以前用的是API函数控制剪切板实现的,也就是说截屏肯定出现在剪切板中。所以我来实现的思路就是控制剪切板的内容! --------------------编程问答-------------------- 代码找不到了!你在网上应该很容易找到控制剪切板的内容的方法!你试试 --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- 有事没事到精华帖找就有了
补充:.NET技术 , C#