Forums Register Login

saving canvas as an image

+Pie Number of slices to send: Send
Hi guys!

I am a beginner in designing a java application and I posted this message because I knew you guys can help me. Just want to ask if how could you save a canvas in a java application as an image (i.e .gif, .jpeg, etc.)?

Could you gave me a simple and brief example for doing this?

Thanks!

-mario
+Pie Number of slices to send: Send
Hi Mario,
I too am a beginner...seeing your post i just remembered i had to do this once.Am not sure if you want to write a code to save your application as a gif.I think this link may be useful:

http://forum.java.sun.com/thread.jspa?threadID=173336&messageID=2044327

In my case i needed the image of a GUI as a .gif file to insert in the help menu.For this you can capture the screen with shift+printscreen and edit it with some editor like paint and then save the image.Hope this is useful to you.

Thejaswini.
+Pie Number of slices to send: Send
Don't play dumb with me! But you can try this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1929 times.
Similar Threads
[Solved] Clear SurfaceView
How save canvas element?
Previous image does not clear on repainting Canvas in a loop with different positions
printer and canvas
hi helpme
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:08:14.