like
TakeScreenshot(new Rectangle(0,0,100,100), \"output.jpg\");
Use the Graphics.CopyFromScreen method. Google turns up this tutorial.