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