android 手机logo 的设置
android的驱动支持的RGB565格式rle的图片。
我们可以这么作
1 将图片转化成RAW格式,可以使用ubuntu自代的GIMP软件。
2使用android自带的rgb2565工具,将RAW转化成rle
用发如下:rgb2565 -rle <initlogo.raw> initlogo.rle
3将initlogo.rle 打包到根文件系统中
./system/core/rootdir/etc/initlogo.rle
1. find an image you like
2. edit it with your favourite editing suite and scale it to 320x480(240*320)
3. after scaling it, convert the colorspace to 256 colors (8-bit)
4. Save it as a PNG without alpha channel/transparency.
5. Use the convert tool from the ImageMagick toolkit (use cygwin, or a linux box): convert -depth 8 splash.png rgb:splash.raw
6. Check that the splash.raw file is exactly 460800 bytes!(useless)
7. Compile the android tool called rgb2565 (gcc -O2 -Wall -Wno-unused-parameter -o rgb2565 to565.c)
8. Run the conversion command: rgb2565 - rle < splash.raw > splash.raw565
9. Check that splash.raw565 is 307200 bytes. if it isn't, DO NOT FLASH IT ON YOUR PHONE. double-check your steps, something went wrong.
更多相关文章
- 浅谈android的selector背景选择器
- Android(安卓)性能优化之内存优化
- Android(安卓)TextView使用HTML处理字体样式、显示图片等
- listview背景选择
- Android(安卓)Handler 异步消息处理机制的妙用 创建强大的图片加
- Android(安卓)ListView滑动过程中图片显示重复错乱闪烁问题解决
- Android(安卓)Handler 异步消息处理机制的妙用 创建强大的图片加
- Android(安卓)Opencv 之 Android(安卓)Studio 进行 opencv ( 4.2.
- Android(安卓)Bitmap 的加载和 Cache 缓存 笔记