int width = ScreenPrimaryScreenBoundsWidth;
int height = ScreenPrimaryScreenBoundsHeight;
Bitmap bmp = new Bitmap(width height);
using (Graphics g = GraphicsFromImage(bmp))
{
gCopyFromScreen( new Size(width height));
}
bmpSave(@c:\jpg);
bmpDispose();
参考