I was trying Alpha blending effect. i tried 2 approaches , one without any window and other with window. I was successful to make alpha blending effect without window however i failed to do it with window and text widget. Here text is not mixed with the background.
For without window operation i used following code snippet and it worked. Image is attached :
Display All
code for "with window" operation is attached. Can anybody help me to achieve the alpha blending for text widget on a window created by dialogue box ?
For without window operation i used following code snippet and it worked. Image is attached :
C Source Code
- GUI_SetColor(GUI_WHITE);
- GUI_SetFont(&GUI_Font24B_ASCII);
- GUI_DispStringHCenterAt("Maria Jos \n ID= 24358915 \n Duration=21:45 \nAge =45", 100, 120);
- GUI_SetColor(GUI_RED);
- for (i = 0; i < 100; i++)
- {
- U8 Alpha;
- Alpha = (i * 255 / 100);
- GUI_SetAlpha(Alpha);
- GUI_DrawHLine(240 - i, 0, 320);
- }
- GUI_SetAlpha(0);
code for "with window" operation is attached. Can anybody help me to achieve the alpha blending for text widget on a window created by dialogue box ?
The post was edited 1 time, last by amit251291 ().