dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnetlib/System.Drawing Graphics.cs,1.23,1.24


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnetlib/System.Drawing Graphics.cs,1.23,1.24
Date: Thu, 20 Nov 2003 07:42:22 +0000

Update of /cvsroot/dotgnu-pnet/pnetlib/System.Drawing
In directory subversions:/tmp/cvs-serv21563/System.Drawing

Modified Files:
        Graphics.cs 
Log Message:


Add the "DrawGlyph" primitive, for drawing simple xbm-based glyphs for
minimize, close, scroll arrows, etc.


Index: Graphics.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/System.Drawing/Graphics.cs,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** Graphics.cs 14 Nov 2003 23:17:31 -0000      1.23
--- Graphics.cs 20 Nov 2003 07:42:19 -0000      1.24
***************
*** 3860,3863 ****
--- 3860,3879 ----
                        }
  
+       // Draw a bitmap-based glyph to a "Graphics" object.  "bits" must be
+       // in the form of an xbm bitmap.
+       internal void DrawGlyph(int x, int y,
+                                                   byte[] bits, int bitsWidth, 
int bitsHeight,
+                                                   Color color)
+                       {
+                               int dx, dy;
+                               ConvertPoint(x, y, out dx, out dy, pageUnit);
+                               lock(this)
+                               {
+                                       ToolkitGraphics.DrawGlyph
+                                               (dx + baseWindow.X, dy + 
baseWindow.Y,
+                                                bits, bitsWidth, bitsHeight, 
color);
+                               }
+                       }
+ 
  }; // class Graphics
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]