0

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?

Robin Green
  • 32,079
  • 16
  • 104
  • 187
somedude
  • 21
  • 1

1 Answers1

1

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

Community
  • 1
  • 1
Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433