Updates:
Status: Accepted
Owner: allain.lalonde
Labels: Type-Defect Priority-Medium Effort-Medium
Toolkit-Piccolo2D.Java
Component-Core Milestone-1.3
Comment #1 on issue 88 by heuermh: toImage doesn't return an image of the
proper size
http://code.google.com/p/piccolo2d/issues/detail?id=88
Hmm, this is one of those cases where having final method parameters
public Image toImage(final int width, final int height, final Paint
backGroundPaint)
instead of
public Image toImage(int width, int height, Paint backGroundPaint)
may have helped prevent the problem.
Either width or height is rescaled, so if the node's fullBounds is not
square you may
not get what you asked for. I think all that's needed here is some
clarification to
the javadoc, and test cases that cover the different conditions (i.e.
narrow full
bounds, square full bounds, wide full bounds).
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
Piccolo2D Developers Group: http://groups.google.com/group/piccolo2d-dev?hl=en
-~----------~----~----~----~------~----~------~--~---