How can I convert a BufferedImage to an ImageIcon?
I can not find any documentation on this.
Use constructor: ImageIcon(Image image)
, BufferedImage
extends Image
.
BufferedImage
extends Image
, so it's simply:
new ImageIcon(myBufferedImage);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With