生成的png图片打不开

xxnan 2013-03-12 09:47:46
File file=new File(Environment.getExternalStorageDirectory(),name);

if(Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED))
{
try {
FileOutputStream fout=new FileOutputStream(file);
fout.close();
getBitmap(AndroidPicActivity.this).compress(Bitmap.CompressFormat.PNG, 100, fout);
} catch ( IOException e) {
Toast.makeText(AndroidPicActivity.this, "save filed", Toast.LENGTH_SHORT).show();
}
}

这里生成的png图片打不开,求指导,在线等。。。。
...全文
119 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

786

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 非技术区
android小程序微信小程序 技术论坛(原bbs)
社区管理员
  • 非技术区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧