Re: saving lines on canvas as GIF file format
- From: Joshua Cranmer <Pidgeot18@xxxxxxxxxxxxxxx>
- Date: Sun, 16 Aug 2009 12:50:04 -0400
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.
--
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald E. Knuth
.
- Follow-Ups:
- Re: saving lines on canvas as GIF file format
- From: John B. Matthews
- Re: saving lines on canvas as GIF file format
- References:
- saving lines on canvas as GIF file format
- From: Andy Cho
- saving lines on canvas as GIF file format
- Prev by Date: Re: to get values passed to a method as its arguments - how?
- Next by Date: Re: Problems with applet for displaying desktop app's output
- Previous by thread: saving lines on canvas as GIF file format
- Next by thread: Re: saving lines on canvas as GIF file format
- Index(es):
Relevant Pages
|