Why is Slick giving me this warning regarding PNG data?

落花浮王杯 提交于 2019-12-31 04:37:12

问题


I'm getting this warning in the console:

WARN:class org.newdawn.slick.opengl.PNGImageData failed to read the data

After switching between png files, it seems the warning is appearing because I was using a 16 bit PNG image. Why is this? Should I ignore it and stick with 16 bit or use 8 bit?


回答1:


For those that are Googling this error (like I did), my answer was that my PNGs were interlaced. They would still load, but display the above error. Short answer, switch interlacing to none when you save out of your image editor (I'm using Photoshop CS6).



来源:https://stackoverflow.com/questions/10876968/why-is-slick-giving-me-this-warning-regarding-png-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!