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/11/16 14:28:25 UTC
DO NOT REPLY [Bug 46197] rounding bugs in
HSSFPicture.getPreferredSize
https://issues.apache.org/bugzilla/show_bug.cgi?id=46197
Yegor Kozlov <ye...@dinom.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #1 from Yegor Kozlov <ye...@dinom.ru> 2008-11-16 05:28:23 PST ---
Thanks for the suggestion. Applied in r718023 ( https://svn.apache.org/viewcvs.cgi?view=rev&rev=718023 ).
P.S. Inspired by the "images and anchors - controlling image size" thread in
poi-user, I added HSSFPicture.resize(double scale).
scale is the amount by which image dimensions are multiplied relative to the
original size:
picture.resize(); //resets to 100% size
picture.resize(1); //resets to 100% size
picture.resize(2); //resets to 200% size
picture.resize(0.5); //resets to 50% size
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