using System.Drawing;
namespace ScreenShot
{
class Program
{
static void Main(string[] args)
{
Graphics graph = null;
var bmp = new Bitmap(1920, 1080);
graph = Graphics.FromImage(bmp);
graph.CopyFromScreen(0, 0, 0, 0, bmp.Size);
bmp.Save("screen.bmp");
}
}
}
|