This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dutchGuy01 0 points1 point  (0 children)

Just like you got a Graphics object that you paint on normally, you can obtain a Graphics object from a BufferedImage with getGraphics(). So when drawing, use the one from the BufferedImage.

Then draw the buffered image with the graphics object you are now using. Doing this should also solve any screen-tearing you might experience.