import java.awt.geom.*; static void drawRoundEdgeCurve(BufferedImage image, int x1, int y1, int x2, int y2, int x3, int y3, Color color, float width) { Graphics2D g = imageGraphics(image); g.setColor(color); g.setStroke(new BasicStroke(width, BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER)); g.draw(new QuadCurve2D.Float(x1, y1, x2, y2, x3, y3)); g.dispose(); } static void drawRoundEdgeCurve(BufferedImage image, Pt a, Pt b, Pt c, Color color, float width) { drawRoundEdgeCurve(image, a.x, a.y, b.x, b.y, c.x, c.y, color, width); }