Closed mro closed 9 years ago
Thank you for reporting this. I will resolve it shortly. (After putting in a unit
test to test it.)
Reported by allain.lalonde
on 2009-10-14 20:10:11
Failing test is:
public void testToImageUsesFullBoundsWhenConvertingImage() throws IOException {
node.setBounds(0, 0, 50, 50);
PNode child1 = new PNode();
child1.setBounds(0, 0, 100, 50);
child1.setPaint(Color.RED);
node.addChild(child1);
PNode child2 = new PNode();
child2.setBounds(0, 0, 50, 100);
child2.setPaint(Color.BLUE);
node.addChild(child2);
BufferedImage image = (BufferedImage) node.toImage();
assertNotNull(image);
assertEquals(100, image.getWidth());
assertEquals(100, image.getHeight());
assertEquals(Color.RED.getRGB(), image.getRGB(99, 1));
assertEquals(Color.BLUE.getRGB(), image.getRGB(1, 99));
}
Reported by allain.lalonde
on 2009-10-14 20:36:42
Fixed in r709
Reported by allain.lalonde
on 2009-10-14 20:41:21
Fixed
Reported by heuermh
on 2009-10-30 02:58:41
Verified
Originally reported on Google Code with ID 137
Reported by
reids%colorado.edu@gtempaccount.com
on 2009-10-14 19:46:52