|

楼主 |
发表于 2014-9-4 14:21:12
|
显示全部楼层
定义可以找到,主要是现在怎么使用它。
下面是相关的结构体。
typedef struct {
int NumEntries;
char HasTrans;
const LCD_COLOR * pPalEntries;
} LCD_LOGPALETTE;
typedef struct {
void (* pfDraw) (int x0,
int y0,
int xsize,
int ysize,
const U8 * pPixel,
const LCD_LOGPALETTE * pLogPal,
int xMag,
int yMag);
GUI_COLOR (* pfIndex2Color)(unsigned Index);
void (* pfDrawHW)(int x0,
int y0,
int xsize,
int ysize,
const U8 * pPixel,
const LCD_LOGPALETTE * pLogPal,
int xMag,
int yMag);
const LCD_API_COLOR_CONV * pColorConvAPI;
} GUI_BITMAP_METHODS;
typedef struct {
U16P XSize;
U16P YSize;
U16P BytesPerLine;
U16P BitsPerPixel;
const U8 * pData;
const GUI_LOGPALETTE * pPal;
const GUI_BITMAP_METHODS * pMethods;
} GUI_BITMAP; |
|