Re: [JAVA2D] How to dump the a java2d image in file .

2006-06-14 Thread Deepak Jain
Hi Andrew, Thanks for the reply , I am using jdk 1.5.0_06. Here are the steps I tried 1. First I created the BufferedImage object BufferedImage buffered_image = new BufferedImage (600, 300, BufferedImage.TYPE_INT_RGB); 2. Now I create a Graphics2D object fromt the buffer so that I can write it

Re: [JAVA2D] How to dump the a java2d image in file .

2006-06-14 Thread Deepak Jain
Hi Andrew, Bingo it worked, But I need to save the file as jpeg instead of gif. Any ideas how can I save it as gif file. Thanks Deepak On 6/14/06, Deepak Jain [EMAIL PROTECTED] wrote: Hi Andrew, Thanks for the reply , I am using jdk 1.5.0_06. Here are the steps I tried 1. First I created

Re: [JAVA2D] java.awt.HeadlessException [JAVA2D] How to dump the a java2d image in file .

2006-06-14 Thread Deepak Jain
/.Thanks,AndrewDeepak Jain wrote: Hi Andrew, Bingo it worked, But I need to save the file as jpeg instead of gif. Any ideas how can I save it as gif file. Thanks Deepak On 6/14/06, *Deepak Jain* [EMAIL PROTECTED] mailto: [EMAIL PROTECTED] wrote: Hi Andrew, Thanks for the reply , I am using jdk

[JAVA2D] How to dump the a java2d image in file .

2006-06-13 Thread Deepak Jain
Hi, I am completely lost with Java2d. I have some how managed to construct a composite image and i dont understand how i did it. Please find the code below, I was working on one of ur examples.Now i need to dump this composite image to a temp file so that i can display it on the web-browser using