I want to save a BufferedImage (named "result"):
boolean bres = ImageIO.write(result, ".png", new File(saveP));
But bres is always null.
This
ImageIO.getWriterFormatNames()
returns that:
jpg BMP bmp JPG jpeg wbmp png JPEG PNG WBMP GIF gif
I should be able to save as an png.
And the type of the BufferedImage is "2"
BufferedImage@137695c: type = 2 DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=ff000000 IntegerInterleavedRaster: width = 720 height = 576 #Bands = 4 xOff = 0 yOff = 0 dataOffset[0] 0
Type 2 is "ARGB".
Why i can't save the BufferedImage?
EDIT: saveP = "ex000567.png"