c# 8条语句实现屏幕抓图
时间:2006-12-26 12:10:13 来源:CSDN 作者:chk_76ren ()
Image myImage = new Bitmap(300, 200);
Graphics g = Graphics.FromImage(myImage);
g.CopyFromScreen(new Point(Cursor.Position.X - 150, Cursor.Position.Y - 25), new Point(0, 0), new Size(300, 200));
IntPtr dc1 = g.GetHdc();
g.ReleaseHdc(dc1);
this.pictureBox1.Image = myImage;
myImage.Save("c:\\1.jpeg");
http://community.csdn.net/Expert/topic/5234/5234215.xml?temp=.7797205
下一篇:C#中使用存储过程中的返回值


















文章评论
共有 位CH网友发表了评论 查看完整内容