Question: Is there an API that would let me do it in <http://teststack.github.com/White/>?
I can't seem to find it.

Thanks

Pawel

Answer: 
I know this is a very old post. But I though can't hurt to update it. TestStack.White has these functions now:

```
//Takes a screenshot of the entire desktop, and saves it to disk
Desktop.TakeScreenshot("C:\\white-framework.png", System.Drawing.Imaging.ImageFormat.Png);
//Captures a screenshot of the entire desktop, and returns the bitmap
Bitmap bitmap = Desktop.CaptureScreenshot();

```
From looking through the code on GitHub, it doesn't appear to have an API for that (perhaps [add it as a feature request](https://github.com/TestStack/White/issues)?).

You can do it fairly simply yourself though using a combination of the [`Screen`](http://msdn.microsoft.com/en-gb/library/system.windows.forms.screen.aspx) class and [`Graphics.CopyFromScreen`](http://msdn.microsoft.com/en-us/library/6yfzc507.aspx). There are some examples of how to capture the screen or the active window in the answers to [this question](https://stackoverflow.com/questions/1163761/).