Slick Forums

Discuss the Slick 2D Library
It is currently Thu May 23, 2013 11:33 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sun Apr 29, 2012 6:43 pm 
Offline

Joined: Wed Apr 25, 2012 2:26 pm
Posts: 13
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)


Top
 Profile  
 
PostPosted: Sun Apr 29, 2012 9:04 pm 
Offline
Slick Zombie

Joined: Fri Jan 29, 2010 7:02 pm
Posts: 1172
Probably because you saved your PNG in 16 bit / component format.
Or the Slick version you are using is still using a very old version of my PNGDecoder.

_________________
TWL - The Themable Widget Library


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group