Convert BufferedImage to ImageIcon

Get Off My Lawn picture Get Off My Lawn · Nov 30, 2012 · Viewed 56.3k times · Source

How can I convert a BufferedImage to an ImageIcon?

I can not find any documentation on this.

Answer

Nemanja picture Nemanja · Nov 30, 2012

Use constructor: ImageIcon(Image image), BufferedImage extends Image.