• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

saving canvas as an image

 
mario tan
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
thejaswini ramesh
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Saving a Generated Graphic to a PNG or JPEG File
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic