I'm new to this website and relatively new to Java.
I've created a Java application that uses the ACM graphics package and extends a GraphicsProgram
. I want to now be able to convert the contents of my graphical output window into an image file such as a png or jpeg. How to do that?