using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace _06_截屏
{
class Program
{
static void Main(string[] args)
{
using (Bitmap bitmap = new Bitmap(1000, 1000))
{
using (Graphics g = Graphics.FromImage(bitmap))
{
g.CopyFromScreen(new Point(100,100),new Point(200,200),new Size(1000,1000) );
}
bitmap.Save("1.png", System.Drawing.Imaging.ImageFormat.Png);
}
Console.Read();
}
}
}
截屏操作
最新推荐文章于 2024-05-09 23:01:07 发布