I know it is just a warning but I thought I'd ask if anyone knows why I'm receiving this error?
Code:
Image img = new Image("dir/dir/image.png");
This is the format I'm using, as far as I'm aware this is correct.
Quote:
WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data
java.io.IOException: Unsupported bit depth
at org.newdawn.slick.opengl.PNGImageData.readIHDR(PNGImageData.java:370)
at org.newdawn.slick.opengl.PNGImageData.init(PNGImageData.java:106)
at org.newdawn.slick.opengl.PNGImageData.loadImage(PNGImageData.java:680)
at org.newdawn.slick.opengl.CompositeImageData.loadImage(CompositeImageData.java:62)
at org.newdawn.slick.opengl.CompositeImageData.loadImage(CompositeImageData.java:43)
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:277)
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:231)
at org.newdawn.slick.opengl.InternalTextureLoader.getTexture(InternalTextureLoader.java:171)
at org.newdawn.slick.Image.<init>(Image.java:196)
at org.newdawn.slick.Image.<init>(Image.java:170)
at org.newdawn.slick.Image.<init>(Image.java:158)
at org.newdawn.slick.Image.<init>(Image.java:136)
at org.game.engine.Player.<init>(Player.java:21)
at org.game.Game.init(Game.java:29)
at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:390)
at org.newdawn.slick.AppGameContainer.start(AppGameContainer.java:314)
at org.game.Game.main(Game.java:86)