Need image as BMP format
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   raja_raja
Posted On:   Monday, October 23, 2006 08:28 AM

Hi, I am using the below code for getting picture image (Note: I need image in "BMP" format) BufferedImage image = new BufferedImage(750, 400, 4); Graphics2D g2 = image.createGraphics(); ...... ...... ...... g2.fillRect(0,0,420, 300); ...... ...... ...... Finally, ImageIO.write(image, "bmp", baos); But even writing the above code I am getting output format as "jpeg". What change do I need to do in the above code to get BMP format or do I need to follow some other way. Thanks in advance. raja    More>>

Hi,

I am using the below code for getting picture image (Note: I need image in "BMP" format)


BufferedImage image = new BufferedImage(750, 400, 4);

Graphics2D g2 = image.createGraphics();

......

......

......

g2.fillRect(0,0,420, 300);

......

......

......

Finally,

ImageIO.write(image, "bmp", baos);




But even writing the above code I am getting output format as "jpeg". What change do I need to do in the above code to get BMP format or do I need to follow some other way.




Thanks in advance.

raja    <<Less

Re: Need image as BMP format

Posted By:   raja_raja  
Posted On:   Saturday, October 28, 2006 06:28 AM

Any response will be helpful. I found the above code from net. But i am getting only jpeg image. Help plz...



Thanks in advance.
About | Sitemap | Contact