是不可变的位图的速度,然后一个可变的吗? [英] Is an immutable Bitmap faster then a mutable one?

查看:153
本文介绍了是不可变的位图的速度,然后一个可变的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

位图类<一href="http://developer.android.com/reference/android/graphics/Bitmap.html#copy%28android.graphics.Bitmap.Config,%20boolean%29">has方法复制()与下面的签名:

The Bitmap class has a method copy() with the signature below:

public Bitmap copy(Bitmap.Config config, boolean isMutable)

有一个可变和不可变之间的性能差异位图

推荐答案

罗曼盖伊在评论中回答:

要回答原来的问题:没有,没有什么表现   差分。有一些优化,我们可以实施   可变位图虽然。希望在以后的版本:)

To answer the original question: no, there is no performance difference. There are some optimizations we could implement for mutable bitmaps though. Hopefully in a future release :)

这篇关于是不可变的位图的速度,然后一个可变的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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