Through the above analysis, we can know that the LOGO image is in the RLE-encoded 565 format, that is, the travel encoding is used, and the color digits are 16 bits (Red Five bits, green 6 bits, Blue 5 bits ). Therefore, the format of all other images must be converted to this standard format before the initialization process can be displayed. The following describes how to customize a LOGO image. For example, the image to be displayed is as follows:
<! -- [If! Vml] --> <! -- [Endif] -->
The pixel size of this image is 480X272, and the display size is 4.3. You can create images directly on the Windows platform, and save them as PNG files, such as xiyang.png. Then open the windows shared folder in linux, copy the file to the linux directory, and perform the following operations:
<! -- [If! SupportLists] --> 1. <! -- [Endif] --> download the imgageMagick tool and run the following command: sudo apt-get install imagemagick to install the image file conversion tool, it is used to convert a png file to an rgb original format.
<! -- [If! SupportLists] --> 2. <! -- [Endif] --> convert a png logo image to a raw image:
Convert-depth 8 xiyang.png rgb: xiyang. raw
<! -- [If! SupportLists] --> 3. <! -- [Endif] --> convert raw format to rle format:
Android-2.0/out/host/linux-x86/bin/rgb2565-rle <xiyang. raw> initlogo. rle
When the conversion is successful, the number of pixels is displayed.
Copy the initlogo. rle file to the nfsboot directory.