lpcware

emwin antialiasing color problem

Discussion created by lpcware Employee on Jun 15, 2016
Content originally posted in LPCWare by molnar.david on Fri Aug 28 07:46:28 MST 2015
Hi emWin Users,

I would like to request your help in the following problem. I am using STM32F427VG and HX8357D with FMC controller in 16 bit mode RGB565. I successfully integrated the STemWin library with STM32Cube_FW_F4_V1.7.0. RED and BLUE color were swapped but after using GUICC_M565 it is solved.

in LCDConf_FlexColor_Template.c at function void LCD_X_Config(void)
...
pDevice = GUI_DEVICE_CreateAndLink(GUIDRV_FLEXCOLOR, GUICC_M565, 0, 0);
...
GUIDRV_FlexColor_SetFunc(pDevice, &PortAPI, GUIDRV_FLEXCOLOR_F66709, GUIDRV_FLEXCOLOR_M16C0B16);
...

The problem is with the anti-aliased circles (maybe other polygons are involved too). The colors which are used by the library is not correct. Look at the picture: there are Red green and blue circles on red green and blue rectangles. I think the red circle on red background shouldn't be seen. Attached the picture

https://goo.gl/photos/cq1wQaMWtXFFPwEo9

Any help would be appreciated

Thank you in advance,
Dave

Outcomes