Read the API doc for the ImageIO class and see what package it is in. It will be java. something.
Type: Posts; User: Norm
Read the API doc for the ImageIO class and see what package it is in. It will be java. something.
Please explain the problem
Did you add the import for that class?
Not correctly coded. Look at the {}s
You must have a catch with the try:
try{ YOUR CODE HERE }catch(Exception x) {x.printStackTrace();}
Post what you have tried. And the error messages you had.
Please edit your code and wrap it in code tags to preserve the formatting.
See: BB Code List - Java Programming Forums
Or use Go...
I assume you mean you want to replace the calls to fillRect() with a call to drawImage()
Read the image files into an image (see the ImageIO class) and use the drawImage method