2004-05-28 Miguel de Icaza <miguel@ximian.com>

* Added System.Drawing samples.

svn path=/trunk/gtk-sharp/; revision=28397
This commit is contained in:
Miguel de Icaza 2004-05-28 21:45:05 +00:00
parent 68e25828ad
commit f68162fb3c
2 changed files with 14 additions and 10 deletions

View file

@ -1,3 +1,7 @@
2004-05-28 Miguel de Icaza <miguel@ximian.com>
* Added System.Drawing samples.
2004-05-28 Mike Kestner <mkestner@ximian.com>
* configure.in : bump for next version, tagged 0.92.

View file

@ -79,8 +79,6 @@ class PrettyGraphic : DrawingArea {
Gdk.Rectangle area = args.Area;
using (Graphics g = Gdk.Graphics.FromDrawable (args.Window)){
//Console.WriteLine ("{0} and {1}", -args.Area.X, -args.Area.Y);
//g.TranslateTransform (-args.Area.X, -args.Area.Y);
Pen p = new Pen (Color.Blue, 1.0f);
for (int i = 0; i < 600; i += 60)
@ -112,15 +110,17 @@ class MovingText : DrawingArea {
Gdk.Rectangle area = args.Area;
using (Graphics g = Gdk.Graphics.FromDrawable (args.Window)){
Brush back = new SolidBrush (Color.White);
Brush fore = new SolidBrush (Color.Red);
Font f = new Font ("Times", 20);
using (Brush back = new SolidBrush (Color.White),
fore = new SolidBrush (Color.Red)){
using (Font f = new Font ("Times", 20)){
g.FillRectangle (back, 0, 0, 400, 400);
g.TranslateTransform (150, 100);
g.RotateTransform (d);
d += 3;
g.DrawString ("Mono", f, fore, 0, 0);
g.FillRectangle (back, 0, 0, 400, 400);
g.TranslateTransform (150, 100);
g.RotateTransform (d);
d += 3;
g.DrawString ("Mono", f, fore, 0, 0);
}
}
}
return true;