Java can display png, jpg some other image formats, but I need to display the BMP file in JLable, getting the file path.
ImageIcon imageIcon = new ImageIcon(imageFile.getAbsolutePath());
ImageIcon supports typical png,gif,jpg images.
I am working in a project, I cannot open the bmp file and save the same file as jpg, because I cannot store something at runtime. I could only generate an image by holding it in my memory. But I do not know how to do this.
How can I show BMP in Java 1.4 ?
thanks
java image bmp
Markus lausberg
source share