android BitmapFactorydecodefile和decodestream有什么区别?

MIdsummerReyi 2016-10-25 04:31:51
不懂求教。。。。。。。。。。。。。。。。。
...全文
357 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ink_s 2016-10-25
  • 打赏
  • 举报
回复
There should be no difference between decodeStream() and decodeFile(). In fact, decodeFile() does the same thing you do here. It opens an inputstream and calls decodeStream(). See the source. And Drawable.createFromPath() also just calls BitmapFactory.decodeFile(). So it's in any case the same work/functionality. 意思就是没什么区别

80,471

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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