Skip to content

Instantly share code, notes, and snippets.

@notcoffeetable
notcoffeetable / screenshotter.cs
Created April 24, 2013 18:06
Screenshot screen by index. Crop function is a free bonus.
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Imaging;
class Program
{
static Bitmap screenshot;
static Graphics gfxScreenshot;
[STAThreadAttribute]