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

2006-06-15 Thread Andrew Brygin
Hi Deepak, The problem is likely to be because you extend JApplet and heavyweight components associated with JApplet are not really compatible with headless mode. Have a look at http://weblogs.java.net/blog/ixmal/archive/2006/04/headless_toolki_1.html for more details. Easiest solution is

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

[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

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