ARGB8888 --> ARGB4444&Other Formats 收藏
来源:互联网 发布:淘宝网外贸男装 编辑:程序博客网 时间:2024/05/22 10:53
int argb8888;
int a=(argb8888 & 0xff000000)>>24;
int r=(argb8888 & 0x00ff0000)>>16;
int g=(argb8888 & 0x0000ff00)>>8;
int b=(argb8888 & 0x000000ff)>>0;
short argb4444=((a>>4)<<12)|((r>>4)<<8)|((g>>4)<<4)|((b>>4)<<0);
short rgb555=((r>>3)<<10)|((g>>3)<<5)|((b>>3)<<0);
short rgb565=((r>>3)<<11)|((g>>2)<<5)|(b>>3);
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/xueyong1203/archive/2007/01/05/1474489.aspx
- ARGB8888 --> ARGB4444&Other Formats 收藏
- 二次采样设置的四种彩色模式RGB565,ARGB8888,ARGB4444,ALPHA_8
- Comparing Formats(Comparing with other data formats)学习笔记
- Convert Flash MX Drawing API Output To Other Image Formats
- formats
- [ffmpeg] ffmpeg encode raw audio (pcm) into other formats (mp3, aac, wav, etc)
- RGBA8888 转 ARGB8888 思路
- other
- other
- Other
- Other
- other
- other
- other
- other
- Other
- other
- Other
- 内容页和母板页互访
- HttpClient 部署
- jsp上传文件(简单)
- xbmc小结
- PushButton引擎学习笔记1
- ARGB8888 --> ARGB4444&Other Formats 收藏
- 页面访问统计
- 简单的问题
- Attribute在.net编程中的应用(二)
- eclipse注释日期格式修改
- 一个关于struts2技术的链接
- 抽象类与接口的区别
- MyEclipse6.0快捷键
- 使用DataSet对象添加记录