https://issues.apache.org/bugzilla/show_bug.cgi?id=45391
Yegor Kozlov <[EMAIL PROTECTED]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #1 from Yegor Kozlov <[EMAIL PROTECTED]> 2008-07-21 11:08:32 PST --- Anchor doesn't take into account the line width. If you want to draw individual lines you need to set the image dimensions as max(linewidth, anchor.width) and max(linewidth, anchor.height): Rectangle2D a = l.getAnchor2D(); double w = Math.max(a.getWidth(), l.getLineWidth()); double h = Math.max(a.getHeight(), l.getLineWidth()); BufferedImage img = new BufferedImage((int) Math.round(w), (int) Math.round(h), BufferedImage.TYPE_INT_RGB); Regards, Yegor -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]