截取桌面图片

Screen s = Screen.PrimaryScreen;
            Bitmap bit = new Bitmap(s.Bounds.Width, s.Bounds.Height);

            Graphics g = Graphics.FromImage(bit);
            g.CopyFromScreen(new Point(0, 0), new Point(0, 0), bit.Size);
            bit.Save("d:\\j.bmp");

  

posted @ 2016-01-23 09:17  刀小爱  阅读(188)  评论(0编辑  收藏  举报