static void fillRect(BufferedImage image, int x, int y, int w, int h, Color color) { Graphics2D g = imageGraphics(image); fillRect(g, x, y, w, h, color); g.dispose(); } static void fillRect(Graphics g, Color color, int x, int y, int w, int h) { fillRect(g, x, y, w, h, color); } static void fillRect(Graphics/*2D*/ g, int x, int y, int w, int h, Color color) { g.setColor(color); g.fillRect(x, y, w, h); } // draw on currentImage() static void fillRect(int x, int y, int w, int h, Color color) { fillRect(currentImage(), x, y, w, h, color); } static void fillRect(Rect r, Color color) { fillRect(r.x, r.y, r.w, r.h, color); } ifclass Rect static void fillRect(BufferedImage image, Rect r, Color c) { if (r != null) fillRect(image, r.x, r.y, r.w, r.h, c); } static void fillRect(Graphics/*2D*/ g, Rect r, Color c) { if (r != null) fillRect(g, r.x, r.y, r.w, r.h, c); } endif