Dear all,
I'm trying to display an image generated using a memory device with trasparency and antialiasing enabled.
The image is displayed correctly on a black background, but if I set the background for instance to orange then the antialiased contour of the image is showing black dots.
Display All
What shall I do to make the antialiasing work properly for orange background?
Regards,
Roberto
I'm trying to display an image generated using a memory device with trasparency and antialiasing enabled.
The image is displayed correctly on a black background, but if I set the background for instance to orange then the antialiased contour of the image is showing black dots.
Source Code
- //[...] Initialisations and so on...
- // Create a memory device where to draw
- GUI_MEMDEV_Handle hMem = GUI_MEMDEV_CreateEx(0, 0, X_SIZE, Y_SIZE, GUI_MEMDEV_HASTRANS);
- // Select memory device
- GUI_MEMDEV_Select(hMem);
- // Draw something into the memory device
- GUI_SetPenShape(GUI_PS_ROUND);
- GUI_AA_FillCircle(10 * MAG, 16 * MAG, 3 * MAG);
- // Select LCD, display the image and delete the memory device
- GUI_MEMDEV_Select(0);
- GUI_MEMDEV_WriteAt(m_hMem, point.x, point.y);
- GUI_MEMDEV_Delete(hMem);
What shall I do to make the antialiasing work properly for orange background?
Regards,
Roberto