android 颜色(color)
来源:互联网 发布:js自动触发函数 编辑:程序博客网 时间:2024/05/17 01:00
SDK文档定义如下:
The Color class defines methods for creating and converting color ints. Colors are represented as packed ints, made up of 4 bytes: alpha, red, green, blue. The values are unpremultiplied, meaning any transparency is stored solely in the alpha component, and not in the color components. The components are stored as follows (alpha << 24) | (red << 16) | (green << 8) | blue. Each component ranges between 0..255 with 0 meaning no contribution for that component, and 255 meaning 100% contribution. Thus opaque-black would be 0xFF000000 (100% opaque but no contributions from red, green, or blue), and opaque-white would be 0xFFFFFFFF
Alpha通道是一个8位的灰度通道,该通道用256级灰度来记录图像中的透明度信息,定义透明、不透明和半透明区域,其中黑表示全透明,白表示不透明,灰表示半透明。
public static final int BLACK
public static final int BLUE
public static final int CYAN
public static final int DKGRAY
public static final int GRAY
public static final int GREEN
public static final int LTGRAY
public static final int MAGENTA
public static final int RED
public static final int TRANSPARENT
public static final int WHITE
public static final int YELLOW
- android 颜色(color)
- Android 颜色Color
- Android 颜色Color
- android color.xml 颜色
- Android 颜色Color
- android color.xml 颜色大全
- android颜色配置文件color.xml
- Android 颜色Color(转)
- android颜色color.xml设置
- Android Color(颜色)解析
- Android入门--android.graphics.Color 颜色设置
- 导入color文件中的颜色值 android
- android中的颜色color使用总结
- 安卓颜色 android color.xml
- Android常用的颜色列表,color.xml
- Android color描述文件,颜色值。
- Android常用的颜色列表,color.xml
- Android 常用颜色列表 color.xml
- c++ struct 构造函数
- Linux下文件名乱码的解决方法
- 鱼眼
- 常用的正则表达式
- 自定义组件-跟随手指的小球
- android 颜色(color)
- SQL Server游标的使用【转】
- 2012.2.24
- GNU-ld链接脚本浅析
- 使用CSS3构建Ajax加载动画
- 二叉树1
- 封装 libmemcached 构建 memcached 客户端
- sql语句优化之SQL Server
- hibernate1.1