I have a program that acts somewhat like a light MS Paint. Currently it reads in an XML SVG description (a very limited subset of SVG) and paints the image onto a JPanel, and then the user can update the image.
I was wondering if it was possible to save this image as a PNG (saving it back to SVG is easy). I have researched this, and seen that the examples create a BufferedImage and use Graphics to paint onto the BufferedImage. I was wondering if it was possible to take everything that has already been painted/edited and immediately transfer it to a BufferedImage.