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:
parent
68e25828ad
commit
f68162fb3c
2 changed files with 14 additions and 10 deletions
|
@ -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.
|
||||
|
|
|
@ -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,9 +110,9 @@ 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);
|
||||
|
@ -122,6 +120,8 @@ class MovingText : DrawingArea {
|
|||
d += 3;
|
||||
g.DrawString ("Mono", f, fore, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue