[piccolo2d-dev] Issue 88 in piccolo2d: toImage doesn't return an image of the proper size

2009-10-21 Thread codesite-noreply

Updates:
Status: Fixed

Comment #9 on issue 88 by allain.lalonde: toImage doesn't return an image  
of the proper size
http://code.google.com/p/piccolo2d/issues/detail?id=88

Fixed in r792 and r793. Translation of node was being applied unnecessarily  
and with
the wrong magnification resulting in node being off the images canvas.

--
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
-~--~~~~--~~--~--~---



[piccolo2d-dev] Issue 88 in piccolo2d: toImage doesn't return an image of the proper size

2009-10-21 Thread codesite-noreply


Comment #12 on issue 88 by allain.lalonde: toImage doesn't return an image  
of the proper size
http://code.google.com/p/piccolo2d/issues/detail?id=88

I was able to reproduce the bug with OpenJDK on my Ubuntu box, but I think  
it's
unrelated to the toImage code. To test this out yourself, just set the  
scale of the
aspectCover PText to 10 and run the toImage Example. The label shouldn't  
even appear
on screen. It seems that when the font gets too big, OpenJDK doesn't bother  
rendering
them. Yippee! Groan.

--
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
-~--~~~~--~~--~--~---



[piccolo2d-dev] Issue 88 in piccolo2d: toImage doesn't return an image of the proper size

2009-08-05 Thread codesite-noreply

Updates:
Status: Fixed

Comment #6 on issue 88 by allain.lalonde: toImage doesn't return an image  
of the proper size
http://code.google.com/p/piccolo2d/issues/detail?id=88

Fixed in r649

--
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
-~--~~~~--~~--~--~---



[piccolo2d-dev] Issue 88 in piccolo2d: toImage doesn't return an image of the proper size

2009-07-27 Thread codesite-noreply

Updates:
Status: Started

Comment #5 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

Moving this one back to status Started, since work is still ongoing.

--
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
-~--~~~~--~~--~--~---



[piccolo2d-dev] Issue 88 in piccolo2d: toImage doesn't return an image of the proper size

2009-07-23 Thread codesite-noreply


Comment #4 on issue 88 by allain.lalonde: toImage doesn't return an image  
of the proper size
http://code.google.com/p/piccolo2d/issues/detail?id=88

Good idea. I'd probably write it to have the default be #1 and have another
overloaded method that accepts a parameter, since #1 it retains binary  
compatability
and #2 I think stretching it is a sensible default.

Agreed?

--
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
-~--~~~~--~~--~--~---



[piccolo2d-dev] Issue 88 in piccolo2d: toImage doesn't return an image of the proper size

2009-07-13 Thread codesite-noreply

Updates:
Status: Fixed

Comment #2 on issue 88 by allain.lalonde: toImage doesn't return an image  
of the proper size
http://code.google.com/p/piccolo2d/issues/detail?id=88

Turns out that the resizing is handled automatically in the PNode.print  
method, so the
code in toImage doing the resizing was unnecessary, and actually caused  
toImage to
behave in a way that I think is strange.  If I ask for an image of  
dimension w,h I
should get one of that size back. And the node should be drawn to fill that  
shape as
much as possible.  That is its current behavior (post fix).

--
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
-~--~~~~--~~--~--~---



[piccolo2d-dev] Issue 88 in piccolo2d: toImage doesn't return an image of the proper size

2009-07-11 Thread codesite-noreply

Status: New
Owner: 

New issue 88 by allain.lalonde: toImage doesn't return an image of the  
proper size
http://code.google.com/p/piccolo2d/issues/detail?id=88

What steps will reproduce the problem?  The following test fails:
 public void testToImageResultsInDesiredSizeImage() {
PNode node = new PNode();
node.setBounds(0, 0, 10, 10);   

BufferedImage img = (BufferedImage)node.toImage(20, 40, null);
assertEquals(40, img.getHeight(null));
assertEquals(20, img.getWidth(null));   
 }

What is the expected output? What do you see instead?
   I'd expect to get an image with the dimensions I provided back and the
node stretched to cover as much of it as it could.

What version of the product are you using? On what operating system?
   1.2.1

Please provide any additional information below.
   It's seems that the logic within the function is correctly attempting to
resize the node to be as large as it can be, it's just that it's not
returning an image of the dimensions provided.  I'll submit a patch once I
know this is not the intended behaviour.

--
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
-~--~~~~--~~--~--~---