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
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…