//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); } }
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); } }