somedude
somedude

Reputation: 21

Converting ACM graphics window to image file

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

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168825

See ComponentImageCapture, which can capture and save an image of a Component or JComponent.

Upvotes: 1

Related Questions