Reputation: 21
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?
Upvotes: 0
Views: 254
Reputation: 168825
See ComponentImageCapture
, which can capture and save an image of a Component
or JComponent
.
Upvotes: 1