cancel
Showing results for 
Search instead for 
Did you mean: 

Box with alpha does not work anymore

Klemens_Pleiner_STE
Associate III

Hi!

Since upgrading to TouchGFX 4.17, a box with an Alpha value does not work anymore. It just paints like as an opaque box, but not like a (semi-)transparent box.

Thus I tried to create my own widget that draws a rectangle with the following code:

HAL::getInstance()->lcd().fillRect(invalidatedAreaAbsolute, color, alpha);

But when alpha > 0, the rectangle is NOT (semi-)transparent, but opaque.

How can I get the alpha working with TouchGFX 4.17?

KR, Klemens

23 REPLIES 23

Hi,

As explained in the previous messages, did you try to open the ioc file in STM32CubeMX and generate code again ?

/Romain

I tried, and it has a little complicated. Can you show me the diff in generate code of alpha bleeding in TouchGFX 4.17?

Hi Romain!

You were entirely right! The old ChromART class we used (we introduced it due to problems with L8ARGB images in one of the older TouchGFX versions) caused the problems.

We are now using the newest TouchGFX version with the generated STM32L4DMA class contained in STM32DMA.hpp/.cpp and everything works perfectly well (eg: Boxes with Alpha)!

KR, Klemens

The same problem, I can't just generate it again, my code has changed a lot. Can you tell me what changes need to be made without generating code from CubeMX ?