• Post Reply Bookmark Topic Watch Topic
  • New Topic

Saving an ImageIcon to a file  RSS feed

 
Barry Brashear
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I save an image icon in a file. It also has to be in a format that
a web page would be able to display.

Thanks.
 
Joe Ess
Bartender
Posts: 9429
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ImageIcon has a getImage() method. javax.imageio.ImageIO can write RenderedImage instances to file. How do you convert between an Image and RenderedImage instance?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!