urgent question to all you "real" experts

Hi there,Does anyone know if Java supports bitmap files in any way? I need to perform read and write operations on a bmp file and also display the image.Thank you very muchp.s. if this is unclear i will be happy to clarify things
[272 byte] By [leigh_rq] at [2007-9-26 8:59:39]
# 1

I'm assuming you are referring to the proprietary Windows BMP format. Reading and writing them is no problem, they're just bytes like any other file. The standard Image classes in Java only handle Internet standard formats (GIF, JPG, and PNG). However I have heard there's an add-on package called Java Advanced Imaging, which you can get from Sun's download page ("Products & APIs"). Haven't looked into it myself but from what I've seen in other posts it may work for you.

DrClap at 2007-7-1 20:01:09 > top of Java-index,Core,Core APIs...
# 2
Javaworld has this wonderful tip: http://www.javaworld.com/javaworld/javatips/jw-javatip43.htmlYou'll find "alternative" image decoders/ encoders from here: http://www.geocities.com/marcoschmidt.geo/java-image-coding.html
jsalonen at 2007-7-1 20:01:09 > top of Java-index,Core,Core APIs...
# 3
Those are huge files, you would want to convert them anyway to something else. Of course unless you are making a .bmp conversion program :) I know...or any other graphics program to support many formats.
dnoyeB at 2007-7-1 20:01:09 > top of Java-index,Core,Core APIs...
# 4
Search on bitmap in the java tips section of JavaWorld. There are at least two tips about reading and writing to windows bitmap files. They worked for me. Once you have opened the file, you can get an Image which you can then display.
edster3 at 2007-7-1 20:01:09 > top of Java-index,Core,Core APIs...
# 5

Of course there are a million (ok maybe a fewer than million, a lot fewer than a million) solutions out there floating around on the web. Get one of them ..

Or, use Sun's JAI:

Reading BMP:

http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Acquisition.doc.html#62011

Writing BMP:

http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Encode.doc.html#51259

Here is a JAI developer's guide:

http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/index.html

ashutosh at 2007-7-1 20:01:09 > top of Java-index,Core,Core APIs...