static BufferedImage shapeToImage(Color bg default Color.white, Shape shape, int w, int h) { ret renderShape_antiAlias(bg, shape, w, h); } // uses shape.getBounds() static BufferedImage shapeToImage(Color bg default Color.white, Shape shape) { ret renderShape_antiAlias(bg, shape); }