在线时间230 小时
UID3100213
ST金币0
蝴蝶豆0
注册时间2015-2-10
金牌会员
- 最后登录
- 2020-10-21
|
a0a.1 32b0c
悬赏8ST金币未解决
有哪位大侠之前用过UCGUI(3.98版)中GUI_MEMDEV_CopyFromLCD函数,使用它后,区域显示是黑色。
源码如下:
GUI_MEMDEV_Handle Key_hMem;
Key_hMem = GUI_MEMDEV_Create(0,0,20,20); //建立存储设备
GUI_MEMDEV_Select(Key_hMem);
GUI_SetFont(&GUI_Font16B_ASCII);
GUI_SetBkColor(GUI_RED);
GUI_Clear();
GUI_SetColor(GUI_WHITE);
GUI_SetTextMode(GUI_TEXTMODE_NORMAL);
GUI_DispString("Text");
GUI_MEMDEV_CopyFromLCD(Key_hMem);
GUI_MEMDEV_CopyToLCD(Key_hMem);
GUI_MEMDEV_Delete(Key_hMem);
GUI_MEMDEV_Select(0);
配置:
#define GUI_ALLOC_SIZE (3 * 1024*1024) /* Size of dynamic memory ... For WM and memory devices*/
#define GUI_WINSUPPORT 1 /* Window manager package available */
#define GUI_SUPPORT_MEMDEV 1 /* Memory devices available */
#define GUI_SUPPORT_AA 1 /* Anti aliasing available */
|
|