如何判断一张png图片是否已经损坏? 如何判断一张png图片是否已经损坏?我现在判断文件结尾处的iend数据,判断不出来的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 搜索这个 ‘PNG CRC’ 相信有你要的答案, 就是针对于容错检查,因为在png当中存在几种数据结构,每种结构中都存在CRC容错值。这个你在慢满看一下;很好解决滴给一个 范例 http://apps.hi.baidu.com/share/detail/15734002 BitmapFactory.Options options = null; if (options == null) options = new BitmapFactory.Options(); options.inJustDecodeBounds = true;BitmapFactory.decodeFile(filePath, options); //filePath代表图片路径 if (options.mCancel || options.outWidth == -1 || options.outHeight == -1) { //表示图片已损毁 } 求各个门户网站的新闻json接口地址 android得到刚拍照的照片的路径,在线等 使用cygwin编译android源码发生错误 关于android的加速传感器问题 android是否可以动态产生按钮 通过surfaceflinger写屏,提示copybits failed htc g3 上网设置 android showdialog废弃问题 我调测百度地图定位为什么跳出一堆SQLite和exchange的错误 eclipse开发安卓,进入Debug后怎么关闭 Android 4.0源码下载——115网盘 求教:利用adb在电脑和手机上进行文件传输
给一个 范例 http://apps.hi.baidu.com/share/detail/15734002
if (options == null) options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;BitmapFactory.decodeFile(filePath, options); //filePath代表图片路径
if (options.mCancel || options.outWidth == -1
|| options.outHeight == -1) {
//表示图片已损毁
}