New test.
[mono.git] / mcs / class / System.Drawing / Samples / System.Drawing / CopyFromScreen.cs
1 //
2 // Sample that show the default SystemFonts and its names
3 // Requieres .NET 2.0 class library
4 //
5
6 using System;
7 using System.Drawing;
8
9
10 public class SystemFontsSample
11 {
12         public static void Main ()
13         {       
14                 Bitmap  bmp = new Bitmap (800, 800);
15                 Graphics gr = Graphics.FromImage (bmp);
16
17                 gr.CopyFromScreen (0, 0/*src*/, 0,0 /*dst*/, new Size (800, 800));              
18                 bmp.Save ("CopyFromScreen.bmp");
19         }
20
21 }
22
23