Hello,
I want to rotate bmp using mem-device function as below.
I refered to "GUI_MEMDEV_Rotate.c" as example.
final output was just yellow rectagle, not bmp image.
Can anyone advice to me what is wrong on below codes?
FYI, bmp is 16bit(565) bmp data.
//-----------------------------------------------------------------------------------------------//
GUI_MEMDEV_Handle hMemSrc,hMemDst;
hMemSrc = GUI_MEMDEV_CreateFixed(0, 0, 30,30,GUI_MEMDEV_NOTRANS,GUI_MEMDEV_APILIST_16,GUI_COLOR_CONV_565 );
GUI_MEMDEV_Select(hMemSrc);//Select the memory device.
GUI_DrawBmp(....);
GUI_MEMDEV_Select(0);
// GUI_MEMDEV_WriteAt(hMemSrc, 226+6, 54); // bmp is printed well here.
hMemDst = GUI_MEMDEV_CreateFixed(0, 0, 30,30,GUI_MEMDEV_NOTRANS,GUI_MEMDEV_APILIST_16, GUI_COLOR_CONV_565);
GUI_MEMDEV_Select(hMemDst);
GUI_SetBkColor(GUI_YELLOW);//bg-color for test.
GUI_Clear();
GUI_MEMDEV_Select(0);
GUI_MEMDEV_RotateHQHR(hMemSrc, hMemDst, 0, 0, 45 * 1000, 1 * 1000);
GUI_MEMDEV_WriteAt(hMemDst, 226+6, 54);// just yellow rectangle is printed.
GUI_MEMDEV_Delete(hMemSrc);
GUI_MEMDEV_Delete(hMemDst);
//-----------------------------------------------------------------------------------------------//
Best Regards,
Tommy Lim
I want to rotate bmp using mem-device function as below.
I refered to "GUI_MEMDEV_Rotate.c" as example.
final output was just yellow rectagle, not bmp image.
Can anyone advice to me what is wrong on below codes?
FYI, bmp is 16bit(565) bmp data.
//-----------------------------------------------------------------------------------------------//
GUI_MEMDEV_Handle hMemSrc,hMemDst;
hMemSrc = GUI_MEMDEV_CreateFixed(0, 0, 30,30,GUI_MEMDEV_NOTRANS,GUI_MEMDEV_APILIST_16,GUI_COLOR_CONV_565 );
GUI_MEMDEV_Select(hMemSrc);//Select the memory device.
GUI_DrawBmp(....);
GUI_MEMDEV_Select(0);
// GUI_MEMDEV_WriteAt(hMemSrc, 226+6, 54); // bmp is printed well here.
hMemDst = GUI_MEMDEV_CreateFixed(0, 0, 30,30,GUI_MEMDEV_NOTRANS,GUI_MEMDEV_APILIST_16, GUI_COLOR_CONV_565);
GUI_MEMDEV_Select(hMemDst);
GUI_SetBkColor(GUI_YELLOW);//bg-color for test.
GUI_Clear();
GUI_MEMDEV_Select(0);
GUI_MEMDEV_RotateHQHR(hMemSrc, hMemDst, 0, 0, 45 * 1000, 1 * 1000);
GUI_MEMDEV_WriteAt(hMemDst, 226+6, 54);// just yellow rectangle is printed.
GUI_MEMDEV_Delete(hMemSrc);
GUI_MEMDEV_Delete(hMemDst);
//-----------------------------------------------------------------------------------------------//
Best Regards,
Tommy Lim