made toImage(int, int, Paint) return an image of the size requested. Since it seems that the resizing is already done in PNode.paint it was just a matter of deleting the resize code.
Also, I've added 3 tests to PNodeTest that try and confirm the behavior.
1 parent 58f0169 commit 99435d18eb8a6af88921e66f06a3374a8fbdee8d
@Allain Lalonde Allain Lalonde authored on 14 Jul 2009
Showing 2 changed files
View
core/src/main/java/edu/umd/cs/piccolo/PNode.java
View
core/src/test/java/edu/umd/cs/piccolo/PNodeTest.java