I'm trying to save an image in bmp format, but it doesn't create any file. If I use "png" instead, everything works fine. Any ideas?
//This works fine:
ImageIO.write(bi, "png", new File("D:\\MyImage.png"));
//This does not work:
ImageIO.write(bi, "bmp", new File("D:\\MyImage.bmp"));
ImageIO.getWriterFormatNames()
gives me "jpg", "bmp", "jpeg" and some others..
Thanks in advance.
Jakob
write
returns aboolean
, you should check it. – DevlandTYPE_INT_ARGB
doesn't work, butTYPE_INT_RGB
works. – Bencion