当前位置:网站首页>Gx3001q UI instructions for upgrading 8-bit color to 16 bit color
Gx3001q UI instructions for upgrading 8-bit color to 16 bit color
2022-06-23 03:29:00 【Wukong is so timid】
GX3001Q ui 8 A color Upgrade to 16 Bit color related description
3001Q ui At present, there are mainly 2 Species category , One is 16 Bit color scheme , One is 8 Bit color scheme , Both use bmp Format picture .
8 Bit color refers to UI system-used bmp yes 8 Position color .16 Bit color is, of course, the use of 16 Position color bmp, And is RGB565 Format .
Replace a system with a new one UI, Mainly involves UI Of bmp picture ,libui.a, mhp(ui_defined.h etc. ).
8 Bit color and 16 A color libui.a Different ,mhp Different , If you make a mistake, an exception will be displayed .
8 Replace the bit color with 16 A color , There are three areas that need to be modified :libui.a mhp Related documents bmp picture .
8 Replace the bit color with 8 A color , Of course, it only needs to be modified bmp Just pictures . At present, the mainstream of the scheme system is 16 A color , On the one hand, the display effect is more , On the other hand, it will be more convenient to add advertising Middleware in case of need .
The following mainly describes the three aspects of replacement :
1)libui.a
Replace with the corresponding bit color .a, Compile new .a Or copy directly from other places
2)mhp layer
Public Edition yes 8 Bit color scheme ,mhp You can refer to
16 The bit color scheme can be referred to Wuhu billion project Giant Eagle Quzhou Liaoning project
3)bmp Replace
This is the main work , Artists are required to make renderings of each large picture according to the prototype , Then cut the pictures of each control according to the effect picture . If UI Have decided what style to use , Rendering can be omitted , Direct cut .
In practice UI You need to display the image of the fillet in the And a picture drawn on a specific color background , This involves UI The corner of the display problem , Yes OSD Transparent color and GUI Transparent colors .GX3001Q Use 0x000000 As GUI transparent color , That is, black as the transparent color , Use 0x010000 As OSD transparent color , In fact, it is black to the naked eye .

Pictured above is an example , If the figure is displayed in the full screen , So I just don't want the black on the corners to show , Instead, the corresponding video data is displayed , At this time, the artist needs to set the value written in black as OSD transparent color (0x010000)
If the figure shows other UI On the picture , I don't want the black on the corners to show , Instead, the corresponding video data is displayed , At this time, the artist needs to set the value written in black as GUI transparent color (0x000000)
One thing to note is 8 Bit color scheme all pictures need a color table , Color tables are available from bmp Extracted from the file
16 Concept of the colorless table of the potential colors , And try not to use gradients .
After making each small picture , Use the batch conversion tool to convert bmp convert to .c
16 Bit color conversion uses CreateBmpLib_V2.001-16bpp.exe Tools ,8 Bit color conversion uses CreateBmpLib.exe Tools .
Everything else is a matter of detail , The details are ready , System UI The display effect of is up .
Everything else is a matter of detail , The details are ready , System UI The display effect of is up .
边栏推荐
- PHP code specification
- Tachometer script
- An implementation of universal interface caching Middleware
- An implementation of warning bombing
- Analysis on the development prospect of China's brain computer interface industry in 2021: wide application prospect, sustained and rapid growth of market scale [figure]
- Analysis on the development of China's satellite navigation industry chain in 2021: satellite navigation is fully integrated into production and life, and the satellite navigation industry is also boo
- How does native JS get the child elements of the parent element that the current element belongs to
- How to share small programs released by wechat
- [quick view] Analysis on the development status and future development trend of the global and Chinese diamond cultivation industry in 2021 [figure]
- Fetch request details
猜你喜欢
![Analysis of the number of urban residents covered by basic medical insurance, their treatment and medical treatment in other places in China in 2021 [figure]](/img/81/4d3cb059f700dd9243645e64023be7.jpg)
Analysis of the number of urban residents covered by basic medical insurance, their treatment and medical treatment in other places in China in 2021 [figure]

Analysis on the development of China's graphene industry chain in 2021: with the support of energy conservation and environmental protection policies, the scale of graphene industry will continue to e

Encryption related to returnee of national market supervision public service platform

Analysis on the development of duty-free industry in Hainan Province in 2021: the implementation of the new policy makes the duty-free market in Hainan more "prosperous" [figure]

Jmeter- (V) simulated user concurrent login for interface test

【贪心】leetcode991. Broken Calculator
![Analysis on the development prospect of China's brain computer interface industry in 2021: wide application prospect, sustained and rapid growth of market scale [figure]](/img/84/192d152ceb760264b6b555b321f129.jpg)
Analysis on the development prospect of China's brain computer interface industry in 2021: wide application prospect, sustained and rapid growth of market scale [figure]

Fetch request details

Analysis on the development of China's satellite navigation industry chain in 2021: satellite navigation is fully integrated into production and life, and the satellite navigation industry is also boo

Gakataka student end to bundle Version (made by likewendy)
随机推荐
Analysis on the development prospect of China's brain computer interface industry in 2021: wide application prospect, sustained and rapid growth of market scale [figure]
Tencent released the global DDoS threat report in 2021: DDoS threat has become the preferred extortion method for criminal gangs
Know res.send() and res.end() of Express
Get method of fetch request and data of formdata type submitted by post
Account protection and use scheme
Concept and function of ES6 symbol
Configuring multi cluster management using kubectl
C. Differential Sorting
Operating wechat cache by using wechat low code
[Alibaba middleware technology series] "Nacos technology" service registration and discovery related principle analysis
JS how to delete an item specified in an array
Installing serverstatus probe using pagoda
【二叉树】993. Cousins in Binary Tree
Free upgrade of 2-core 2GB for old generation 1-core 2GB machines below standard S5 and SA2
Network security memorabilia - Summary of vulnerability exploitation events in 2021
[burning] Tencent cloud high tech computing platform HTPC cloud elastic cluster release!
How to install redis version 5.0.8 on the pagoda panel
Blue screen and abnormal downtime DMP file and system log collection
Using promise to process asynchronous operations
2022-01-25: serialize and deserialize n-ary tree. Serialization means that a