Bitmap.Config
来源:互联网 发布:青少年计算机编程创业 编辑:程序博客网 时间:2024/06/04 18:10
最近学习Api文档,打开Android.graphics.Bitmap类里有一个内部类Bitmap.Config类,在Bitmap类里createBitmap(int width, int height, Bitmap.Config config)方法里会用到,打开个这个类一看枚举变量public static final Bitmap.Config ALPHA_8public static final Bitmap.Config ARGB_4444 public static final Bitmap.Config ARGB_8888public static final Bitmap.Config RGB_565一看,有点蒙了,ALPHA_8, ARGB_4444,ARGB_8888,RGB_565 到底是什么呢?其实这都是色彩的存储方法:我们知道ARGB指的是一种色彩模式,里面A代表Alpha,R表示red,G表示green,B表示blue,其实所有的可见色都是右红绿蓝组成的,所以红绿蓝又称为三原色,每个原色都存储着所表示颜色的信息值说白了就ALPHA_8就是Alpha由8位组成ARGB_4444就是由4个4位组成即16位,ARGB_8888就是由4个8位组成即32位,RGB_565就是R为5位,G为6位,B为5位共16位由此可见:ALPHA_8 代表8位Alpha位图ARGB_4444 代表16位ARGB位图ARGB_8888 代表32位ARGB位图RGB_565 代表8位RGB位图
- Bitmap.Config
- Bitmap.Config
- Bitmap.Config
- Bitmap.Config参数
- Bitmap.Config ARGB_8888
- android.graphics.Bitmap.Config
- Bitmap.Config参数
- Bitmap.Config RGB_565 ARGB_8888
- Android:Bitmap.Config
- android bitmap config
- Android bitmap Config
- Bitmap.Config常量
- android Bitmap.Config
- Android--------- Bitmap.Config ARGB_8888
- Bitmap.Config ARGB_8888
- Bitmap中的config
- Bitmap.Config 详解
- 讨论Bitmap.config参数
- 使用Ant打包apk,SDK不同造成的问题
- iPhone开发中经常用到的控件尺寸大集合
- getJson
- LightOJ 1378 - The Falling Circle(几何)
- 锁概念 以及 例程说明
- Bitmap.Config
- Yii框架授权——accessRules用法
- 关于google code的SVN check out 失败的问题
- 再议:__cdecl与__stdcall 调用约定在动态链接库调用中不同的表现
- virtio-scsi的类,对象和实例
- SOJ3605 The sum of prime number
- android电子书大全 下载
- PAXOS---最重要的分布式算法----简单模拟
- http://acm.hdu.edu.cn/showproblem.php?pid=1020..