Save a polygon or 2D Gui as an image

How to do it?thanks
[33 byte] By [ardmorea] at [2007-11-27 9:34:41]
# 1
I suppose you could create an empty Image object, get its Graphics object, and then either invoke the Graphics object's draw methods, or pass it to a GUI's paint() or paintComponent() methods. Then use javax.imageio.ImageIO to save it to a file, if you wish.
paulcwa at 2007-7-12 22:59:31 > top of Java-index,Java Essentials,New To Java...