I have an image, I read the image, add a few things to image (like some text etc).
All this I do inside a JPanel
.
Now, I want to save the resulting image to a .png file.
I think, there is a way to do this for a buffered image using ImageIO.write()
But I cannot convert the dynamically created image to a BufferedImage.
Is there a way I can go about this ?