Android Training Course (23)

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.