Win a copy of Raising Young Coders: A Parent’s Guide to Teaching Programming at Home this week in the General Computing forum!
Forums Login/signup

Saving Graphics in eclipse

+Pie Number of slices to send: Send
Does anyone know how could I save the graphics programs output as a jpg using eclipse software or if its possible?
1
+Pie Number of slices to send: Send
Hanna,

Yes, it is not only possible, but very doable as well.  I'll make the assumption that your programming in Java.  Just make a BufferedImage and save your work to it, then save the image using ImageIO.  It's a pretty easy process.

Les
1
+Pie Number of slices to send: Send
If you want an example, you can try this code



You can found a demo here
1
+Pie Number of slices to send: Send
Oh ok thank you!

reply
reply
This thread has been viewed 564 times.
Similar Threads
Eclipse Remote Debugging Console output
how to store jpg/gif picture in Database
eclipse and classpath
A question regarding saving jpgs into text files.
How can I get rid of the pop-out dos window?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Jun 27, 2025 01:18:27.