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.

更多相关文章

  1. 浅谈android的selector背景选择器
  2. Android(安卓)性能优化之内存优化
  3. Android(安卓)TextView使用HTML处理字体样式、显示图片等
  4. listview背景选择
  5. Android(安卓)Handler 异步消息处理机制的妙用 创建强大的图片加
  6. Android(安卓)ListView滑动过程中图片显示重复错乱闪烁问题解决
  7. Android(安卓)Handler 异步消息处理机制的妙用 创建强大的图片加
  8. Android(安卓)Opencv 之 Android(安卓)Studio 进行 opencv ( 4.2.
  9. Android(安卓)Bitmap 的加载和 Cache 缓存 笔记

随机推荐

  1. Android(安卓)Http请求失败解决方法
  2. Android中当前时间的动态显示
  3. android 小知识
  4. Android(安卓)Studio获取SHA1和MD5
  5. Android(安卓)权限中英文对照表
  6. Android上传图片到服务器并显示(后台用Ja
  7. Eclipse下如何导入第三方.class文件
  8. Android创建XMl文件 .
  9. Android(安卓)代码监控apk安装,卸载,替换
  10. Android的List Dialog实例