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 the

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

2006-06-14 Thread Andrew Brygin
Hi Deepak, To be able write GIF files you must have recent beta of jdk 6.0 You can download it from http://download.java.net/jdk6/binaries/. If using jdk 6.0 is not option for you then you might consider using JAI plugins. For more information on JAI have a look at

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

2006-06-14 Thread Deepak Jain
Hi Andrew, Really thanksfor taking time out and helping me with this.Thanks for the reply I will look into that. I am stuck with HeadlessException now.Am also searchin in google for any solution , In case you have time please have a look @ this. However I have another exception now. I have a