my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes BufferedImage drawing problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "BufferedImage drawing problems" Watch "BufferedImage drawing problems" New topic

BufferedImage drawing problems

Ahmed Attyah

Joined: Apr 02, 2010
Posts: 4

when i initiate object of Grid it draws the grid, later when i want to clear image or other stuff it doesn't, for ex: clear() function which clears the image doesn't work !, any other function which draws any other stuff on the buffered image doesn't work also

Coming for you SCJP
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2179
Code looks reasonable. Post your SSCCE that demonstrates the problem.

In the past when I've wanted to "clear" an image I have just created a new image.
I agree. Here's the link:
subject: BufferedImage drawing problems