diff options
Diffstat (limited to 'mcs/class/System.Drawing/Samples/System.Drawing/CopyFromScreen.cs')
-rw-r--r-- | mcs/class/System.Drawing/Samples/System.Drawing/CopyFromScreen.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mcs/class/System.Drawing/Samples/System.Drawing/CopyFromScreen.cs b/mcs/class/System.Drawing/Samples/System.Drawing/CopyFromScreen.cs new file mode 100644 index 00000000000..e3386a5e2e1 --- /dev/null +++ b/mcs/class/System.Drawing/Samples/System.Drawing/CopyFromScreen.cs @@ -0,0 +1,23 @@ +// +// Sample that show the default SystemFonts and its names +// Requieres .NET 2.0 class library +// + +using System; +using System.Drawing; + + +public class SystemFontsSample +{ + public static void Main () + { + Bitmap bmp = new Bitmap (800, 800); + Graphics gr = Graphics.FromImage (bmp); + + gr.CopyFromScreen (0, 0/*src*/, 0,0 /*dst*/, new Size (800, 800)); + bmp.Save ("CopyFromScreen.bmp"); + } + +} + + |