Hello to all,
I have a general problem regarding the color definintion in emWin 5.22.
In gui.h the standard colors are defined.
for example:
#define GUI_RED 0x000000FF
However, everywhere else in the world Red and Blue is swapped that means plain Red should be:
#define RED 0x00FF0000
Here a link to common color definitions: en.wikipedia.org/wiki/Web_colo…erting_RGB_to_hexadecimal
Why is emWin 5.22 doing it the other way round?
However I solved the problem in using the GUICC_565 color conversion table and I don´t use the emWin color definitions.
This workes fine everywhere in my project regarding the output to the LCD!
But when I use the GUI_BMP_Serialize() Function the Red and Blue colors are again swapped in the resulting file.
So this output obviously doesn´t take care of the color conversion table setting in LCDConf.c
I would be happy about any ideas to detour this issue!
Andy
I have a general problem regarding the color definintion in emWin 5.22.
In gui.h the standard colors are defined.
for example:
#define GUI_RED 0x000000FF
However, everywhere else in the world Red and Blue is swapped that means plain Red should be:
#define RED 0x00FF0000
Here a link to common color definitions: en.wikipedia.org/wiki/Web_colo…erting_RGB_to_hexadecimal
Why is emWin 5.22 doing it the other way round?
However I solved the problem in using the GUICC_565 color conversion table and I don´t use the emWin color definitions.
This workes fine everywhere in my project regarding the output to the LCD!
But when I use the GUI_BMP_Serialize() Function the Red and Blue colors are again swapped in the resulting file.
So this output obviously doesn´t take care of the color conversion table setting in LCDConf.c
I would be happy about any ideas to detour this issue!
Andy