I have a single-color black background. At the center, I want a transparent image.
On top of this image, there is a second image. It is an alpha channel image. Depending on some variables, this should be drawn in different colors. This second image is smaller than the first and completely inside the first.
The system should react when the user touches the first bigger image.
How to achieve this? I can use GUI_DrawBitmap() for both images, but I have to manage myself the user touch.
Another possibility is to use an IMAGE widget for the second image. In this way, emWin library notify my code on user touch. But I don't know how can I assign and draw an alpha-channel image to an IMAGE widget. It seems it is drawn always with white color.
Another possibility is to use a BUTTON widget with a custom skin. Could it be transparent? How to assign and draw an alpha channel image with whatever color?
On top of this image, there is a second image. It is an alpha channel image. Depending on some variables, this should be drawn in different colors. This second image is smaller than the first and completely inside the first.
The system should react when the user touches the first bigger image.
How to achieve this? I can use GUI_DrawBitmap() for both images, but I have to manage myself the user touch.
Another possibility is to use an IMAGE widget for the second image. In this way, emWin library notify my code on user touch. But I don't know how can I assign and draw an alpha-channel image to an IMAGE widget. It seems it is drawn always with white color.
Another possibility is to use a BUTTON widget with a custom skin. Could it be transparent? How to assign and draw an alpha channel image with whatever color?
The post was edited 1 time, last by giusloq ().