GUIX Color Format Order (ARGB, RGBA, etc.)

MechmetTanzou-3667 0 Reputation points
2024-03-28T10:43:43.5633333+00:00

Hello MS Support Team,

I'm trying out GUIX with ThreadX as RTOS on a MCU with a display connected to the MCU. I was able to run the demo demo_guix_washing_machine which is included in the Github Repository. Unfortunately, the colors are not correct, since the demo uses a different color format than the MCU.

The demo is configured to use 24 bpp (RGB), the MCU (actually the display) is configured to use 32 bpp with color byte order RGBA. What I tried out:

  1. I changed the setting in the demo project to use 32 bpp but in the generated source files the color format GX_COLOR_FORMAT_32ARGB is used and I couldn't find out how to set the color format within GUIX Studio. On the MCU I'm able to set any color byte order, e.g. ARGB, and then the colors are displayed correctly.
  2. I tried to change the color format in the generated source files from GX_COLOR_FORMAT_32ARGB to GX_COLOR_FORMAT_32RGBA. But this causes the application to display almost nothing.

For any other projects I would like to known, whether it is possible to set the desired color format (e.g. GX_COLOR_FORMAT_32RGBA) within GUIX Studio or how to modify the generated source files to use a different color format than the default one. In GUIX framework I saw my desired color format GX_COLOR_FORMAT_32RGBA is defined as macro but is never used.

I hope you can help me. Thanks!

Best regards

Azure RTOS
Azure RTOS
An Azure embedded development suite including a small but powerful operating system for resource-constrained devices.
331 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.