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] How to dump the a java2d image in file .

2006-06-13 Thread Andrew Brygin
Hi Deepak, What version of jdk are you using? ImageIO plugin for writing GIF images is available only starting from jdk 6.0 b39. If you are using older version please try latest jdk 6.0 beta. Also note that GIF image format directly supports only images with color palette. You are