Example #1
0
 //Draw Filled Rectangle
 public static void DrawFilledRectangle(CGS.Pen color, CGS.Point position, int width, int height)
 {
     if (GraphicsInitialised())
     {
         aCanvas.DrawFilledRectangle(color, position, width, height);
     }
     else
     {
         InitialiseGraphics();
         DrawFilledRectangle(color, position, width, height);
     }
 }
Example #2
0
 public void SetPixelRaw(int x, int y, Color c)
 {
     if (x <= w && y <= h && x >= 0 && y >= 0)
     {
         Pen p = new Pen(c, 1);
         canv.DrawFilledRectangle(p, x, y, 1, 1);
     }
 }