ImageToBmp

Works with JDK 1.3 and forward


Simple class to turn BufferedImage (or pure image pixel data) to uncompressed Windows 24 bit BMP file bytes or directly to file.

Java ImageIO can also write bmp files. But this is for cases when javax package is not available or bmp is not supported format in environment. Or you simply need to do your own hacks and need more control of what output contains.


Source

ImageToBmp.java (as .txt)