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]

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.