I have never loaded .bmp images to Java application, its so last season format. Anyway wanted to try it out if Java even had bmp loader out of the box. It does have if someone is interested in a legacy format.
It takes another two lines to convert image to RGB .png format, so probably .BMP support has been very low-requested feature.
- Code: Select all
File imgFile = new File("test.bmp");
BufferedImage bimg = ImageIO.read(imgFile);