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