270 views
in GUI Development by
Ok, ported the whole GUI over without too many other issues, however the change to the colour palettes set all of my images to Alpha8 (grey scale). I changed them to Native but the boot up hangs at "Create Embedded Wizard Root Object...        ". It does not fail, just hangs.

If I change from Native to RGB565 then everything is ok but I lose the transparent aspects obviously.

We are set up for RGB888.

Which format should I be using?

1 Answer

0 votes
by

Hello Phil,

what do mean with 'change to the colour palettes'? Your error description sounds very strange. Are you sure the problem is not related to the issue we have discussed in the thread: Error 309 when moving to 9.20? It was also very strange.

Regarding RGB565: if used for a bitmap resource, tha bitmap has no alpha channel. In such case the opacity information is lost. To have bitmaps with transparency, please configure the bitmap with the format, Native or Index8. If you select the format Alpha8, the bitmap will be considered as containing opacity information only. In such case you can determine the color of the bitmap at the runtime. Please see the section: Format.

Regarding RGB888: this refers to the format of the frame buffer. In this case the frame buffer has no alpha channel. Nevertheless, with RGB888 as frame buffer you are not limited and you can still compose an aplication from images containing transparency. The only limitation is: you have no transparancy between the frame buffer with the application content and evtl. other frame buffers (if any) lying behind it (e.g. displaying camera or video player images).

Best regards

Paul Banach

by
Hi Paul,

When I opened my 9.10 project in 9.20, all of my variant images lost their file name, and all images defaulted to Alpha8.

When I ran, all images were greyscale as expected.

I switched to Native (Platform package STM.STM32.RGB888) and the GUI crashes at  "Create Embedded Wizard Root Object...        " without any error code.

If I switch to RGB565 everything is fine except for losing transparency (rounded corners etc) as expected.

 

The previous issue was a renamed define for the QSPI.
by

Hello Phil,

the lost of file names is expected. Please see in 9.20 release notes: Support of new Bitmap Resource formats RGB565 and Index8. I understood, that the bitmaps appear as expected, right?

When you switch a bitmap from previosly Alpha8 to Native format, the bitmap will occupy 4 times more memory for its pixel data. This can cause your application to run in an out of memory error. Such errors, however, are always reported on the console. If your application crashes without errors, I suppose there is some HW or configuration problem. 

Can you run some memory tests? Please see SDRAM memory test.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...