You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2008/07/21 20:08:33 UTC
DO NOT REPLY [Bug 45391] Line dimensions are not proper when read
from a PPT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45391
Yegor Kozlov <ye...@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
--- Comment #1 from Yegor Kozlov <ye...@dinom.ru> 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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org