当前位置:网站首页>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 .
边栏推荐
- Troubleshooting and solution of error 400 in easygbs video platform
- MySQL gets the top 1 and top n records after grouping
- Chapter IV open source projects and deployment
- Form submit onclick and onsubmit
- Flink practice tutorial: advanced 7- basic operation and maintenance
- How to make distribution box label
- Jmeter- (V) simulated user concurrent login for interface test
- Analysis on development history, industrial chain, output and enterprise layout of medical polypropylene in China in 2020 [figure]
- To implement a task scheduling system, it is enough to read this article
- Methods for MySQL to avoid inserting duplicate records
猜你喜欢

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]
![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

Jmeter- (V) simulated user concurrent login for interface test
![Analysis on development history, industrial chain, output and enterprise layout of medical polypropylene in China in 2020 [figure]](/img/28/ebfc25ec288627706e15a07e6bdb77.jpg)
Analysis on development history, industrial chain, output and enterprise layout of medical polypropylene in China in 2020 [figure]

【二分】leetcode1011. Capacity To Ship Packages Within D Days

Detailed discussion on modular architecture design of MCU firmware
![Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]](/img/ca/672bfe49c8123da8679b2abeb43a2e.jpg)
Analysis on the development status of China's watch industry in 2021: a large number of electric watches are imported [figure]
![[quick view] Analysis on the development status and future development trend of the global and Chinese diamond cultivation industry in 2021 [figure]](/img/f1/972a760459a6d599b5681aa634df09.jpg)
[quick view] Analysis on the development status and future development trend of the global and Chinese diamond cultivation industry in 2021 [figure]
![Analysis on demand and market scale of China's steamed stuffed bun industry in 2020 [figure]](/img/4b/dd272f98b89a157180bf68570d2763.jpg)
Analysis on demand and market scale of China's steamed stuffed bun industry in 2020 [figure]
随机推荐
The difference between code39 and code93
Minecraft server technology explanation 𞓜 teach you how to get to the ashes from Xiaobai -- server technology explanation
Frequent actions to expand the scale of new energy industry Guangzhou plans to invest 1.4 billion in photovoltaic power generation projects
Regeorg actual attack and defense
Wwdc21 - App store server API practice summary
How to make special labels for books
Jmeter- (V) simulated user concurrent login for interface test
Batch generation of Codabar codes using Excel files
QUIC or TCP
Nature: correlation between oscillatory signals and gene expression supporting human episodic memory coding
JS to determine whether the page is opened for the first time today
How to make distribution box label
Use ES6 new Target to simulate abstract classes
Learning record -- superficial understanding of unity decoupling
Postman calls relevant interfaces of CLS API 3.0
Dynamic filling of drop-down box with micro overlap
PHP code specification
2022-01-22: Li Kou 411, the abbreviation of the shortest exclusive word. Give a string number
An implementation of universal interface caching Middleware
[metauniverse 7ai rope skipping] how is this app light application realized? What are the application scenarios?