当前位置:网站首页>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 .

 ![8](https://img-blog.csdnimg.cn/img_convert/f79795b5acd42627a75260cbbdec9f3c.png)


     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 .

原网站

版权声明
本文为[Wukong is so timid]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202211735130130.html