Re: saving lines on canvas as GIF file format
- From: Andy Cho <dogmeat37@xxxxxxxxx>
- Date: Tue, 18 Aug 2009 16:52:37 -0700 (PDT)
On Aug 17, 2:34 am, "John B. Matthews" <nos...@xxxxxxxxxxxxxx> wrote:
In article <h69dbu$ft...@xxxxxxxxxxxxxxxxxxx>,
Joshua Cranmer <Pidgeo...@xxxxxxxxxxxxxxx> wrote:
Andy Cho wrote:
Could anyone let me know way how I can save lines on canvas as GIF
image file.
The easiest way I know of is this series of steps:
1. Make a BufferedImage of the correct size.
2. Tell the canvas to paint to the image
3. Use ImageIO to save the image to a GIF file.
Here is an appealing example of the approach:
<http://groups.google.com/group/comp.lang.java.gui/msg/662e54ff77c3e6f8>
--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
Thanks all
I did it.
Regards
Andy
.
- References:
- saving lines on canvas as GIF file format
- From: Andy Cho
- Re: saving lines on canvas as GIF file format
- From: Joshua Cranmer
- Re: saving lines on canvas as GIF file format
- From: John B. Matthews
- saving lines on canvas as GIF file format
- Prev by Date: Re: UTF-8 problems with windows
- Next by Date: Re: saving lines on canvas as GIF file format
- Previous by thread: Re: saving lines on canvas as GIF file format
- Next by thread: Re: saving lines on canvas as GIF file format
- Index(es):
Relevant Pages
|