public static void DrawRectanglePartial(UIEnvironment env, Pen pen, Rectangle bounds, Rectangle relativeBounds) { var cosPoint = new Point(bounds.X, bounds.Y); Kernel.PrintDebug("drawing @ " + bounds.X + " | " + bounds.Y); env.DrawFilledRectangle(pen, cosPoint, relativeBounds.Width, relativeBounds.Height); }
public static void Draw(this Drawing drawing, UIEnvironment e, Point loc, int width = 0, int height = 0) { drawing.Draw(e, loc, new Size(width, height)); }