public RectStruct(Shape.Rectangle r, int x, int y, Pen p) { rect = r; this.x = x; this.y = y; this.p = p; }
public void render(Shape.Rectangle rect, int thickness = 1, Brush color = null) { Pen pcolor; if (color == null) { pcolor = new Pen(Brushes.Black, thickness); } else { pcolor = new Pen(color, thickness); } RectStruct rs = new RectStruct(rect, pcolor); renderlist.Add(rs); renderct++; }
public RectStruct(Shape.Rectangle r, Pen c) { rect = r; p = c; }