Why does the following code throws NegativeArraySizeException
exception?
new BufferedImage(250 * 100, 250 * 100, BufferedImage.TYPE_4BYTE_ABGR);
Output
Exception in thread "main" java.lang.NegativeArraySizeException
at java.awt.image.DataBufferByte.<init>(Unknown Source)
at java.awt.image.Raster.createInterleavedRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at Main.main(Main.java:120)
Does it exceed some internal buffer's limit?