Box with alpha does not work anymore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-09-02 7:20 AM
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
- Labels:
-
TouchGFX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-12 4:40 AM
Hi,
As explained in the previous messages, did you try to open the ioc file in STM32CubeMX and generate code again ?
/Romain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-10-12 6:35 PM
I tried, and it has a little complicated. Can you show me the diff in generate code of alpha bleeding in TouchGFX 4.17?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2021-11-03 11:56 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-02-08 6:42 AM
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 ?

- « Previous
- Next »