5214| 4
|
EMWIN IMAGE 控件 使用IMAGE_SetPNGEx()函数无法直接从SD卡中显示PNG图片 |
10金钱
最佳答案static FIL PNGFile;
static void _cbDialog(WM_MESSAGE * pMsg) {
const void * pData;
WM_HWIN hItem;
U32 FileSize;
switch (pMsg->MsgId) {
case WM_INIT_DIALOG:
hItem = WM_GetDialogItem(pMsg->hWin, ID_IMAGE_0);
f_open(&PNGFile,"/icon/setting/model.png",FA_READ); //打开文件
IMAGE_SetPNGEx(hItem,PngGetData,&PNGFile);
break;
...
| ||
| ||
发表于 2019-9-27 02:34:12
|
显示全部楼层
| ||
| ||
发表于 2022-11-22 12:17:17
|
显示全部楼层
| ||
|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )
GMT+8, 2024-11-22 11:13
Powered by OpenEdv-开源电子网
© 2001-2030 OpenEdv-开源电子网