为什么Slick给我有关PNG数据的警告? [英] Why is Slick giving me this warning regarding PNG data?

查看:121
本文介绍了为什么Slick给我有关PNG数据的警告?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在控制台中收到此警告:

I'm getting this warning in the console:

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

在png文件之间切换后,似乎出现了警告,因为我使用的是16位PNG图片.为什么是这样?我应该忽略它,坚持使用16位还是使用8位?

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?

推荐答案

对于那些正在搜查此错误的人(像我一样),我的回答是我的PNG是隔行扫描的.它们仍将加载,但显示以上错误.简短的答案,当您将图像保存到图像编辑器之外时,将隔行切换为无(我使用的是Photoshop CS6).

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).

这篇关于为什么Slick给我有关PNG数据的警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆