Bitmap 与 drawable 的区别


public abstract class Drawable {
    private static final Rect ZERO_BOUNDS_RECT = new Rect();


    private int[] mStateSet = StateSet.WILD_CARD;
    private int mLevel = 0;
    private int mChangingConfigurations = 0;
。。。。。。。。。。。。。。。。。

}

A Drawable is a general abstraction for "something that can be drawn." Most often you will deal with Drawable as the type of resource retrieved for drawing things to the screen; the Drawable class provides a generic API for dealing with an underlying visual resource that may take a variety of forms. Unlike a View, a Drawable does not have any facility to receive events or otherwise interact with the user.




public final class Bitmap implements Parcelable {
    public static final int DENSITY_NONE = 0;

。。。。。。。。。。。。。。。。。
}    


只从定义上看用Intent 传值的话,得用bitmap的,另外,下面有一些特性:


对比项          显示清晰度      占用内存     支持缩放    支持色相色差调整      支持旋转     支持透明色       绘制速度           支持像素操作

 

Bitmap          相同                大                 是                是                            是                是                     慢                      是

Drawable       相同                小                 是               否                            是                 是                     快                      否

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值