B
bob smith
I'm looking at the drawImage routines in the Graphics class:
http://docs.oracle.com/javase/1.4.2/docs/api/java/awt/Graphics.html
I noticed all of them take integers for the x, y, width, height.
This is not necessarily the best thing since you may have a matrix that scales the canvas by… say 1000 times. Then, it might make sense to have a float passed in.
Maybe there should be drawImageF versions or something so we can pass floats in?
Any ideas?
http://docs.oracle.com/javase/1.4.2/docs/api/java/awt/Graphics.html
I noticed all of them take integers for the x, y, width, height.
This is not necessarily the best thing since you may have a matrix that scales the canvas by… say 1000 times. Then, it might make sense to have a float passed in.
Maybe there should be drawImageF versions or something so we can pass floats in?
Any ideas?