static void Main(string[] args){
Bitmap bit = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height);
Graphics g = Graphics.FromImage(bit);
g.CopyFromScreen(new Point(0, 0), new Point(0, 0), bit.Size);
bit.Save("C:\\temp\\001.png");
g.Dispose();
}
.NET 截屏实现
最新推荐文章于 2023-08-28 12:27:39 发布