Drawing an image using sub-pixel level accuracy using Graphics2D
问题 I am currently attempting to draw images on the screen at a regular rate like in a video game. Unfortunately, because of the rate at which the image is moving, some frames are identical because the image has not yet moved a full pixel. Is there a way to provide float values to Graphics2D for on-screen position to draw the image, rather than int values? Initially here is what I had done: BufferedImage srcImage = sprite.getImage ( ); Position imagePosition = ... ; //Defined elsewhere g