810319 wrote:Create a BufferedImage, obtain its Graphics2D and paint the shapes to the image. Then use ImageIO to save the BufferedImage to whatever format you want (only gif, jpg and png supported though). Basic Java2D custom painting stuff.
I have a couple of shapes (Rectangle2D) which I would like to convert to an image (jpg,gif, etc.). This image will be stored in my hard drive. Can anybody post any samples or give me tips as to how to accomplish this? Thanks
810319 wrote:why? There are plenty of examples already to be found, why should you ask me to waste time adding even more? All you have to do is google it, you know what to search for now. Google is your friend, get used to doing your own research because you'll be doing it for the rest of your career.
Would please post some examples? Thanks for your response