bitmap.h

来自「广州微嵌科技 "WQ44B0开发板"的显示位图程序源代码。此程序可以显示由uCG」· C头文件 代码 · 共 38 行

H
38
字号
#ifndef BITMAP_H
#define BITMAP_H

typedef struct 
{
	int		NumColor; 
	char	HasTrans;        
	const unsigned int *pColor;
} 
PALETTE;

typedef struct 
{
	unsigned short XSize;
	unsigned short YSize;
	unsigned short BytesPerLine;
	unsigned short BitsPerPixel;
	const unsigned char *pData;
	const PALETTE *pPal;
} 
BITMAP;

#define RGBMODE		(233)

#if (RGBMODE == 233)
	#define ColorToIndex(Color) ColorToIndex_233(Color)
	#define IndexToColor(Index) IndexToColor_233(Index)
#elif (RGBMODE == 323)
	#define ColorToIndex(Color) ColorToIndex_323(Color)
	#define IndexToColor(Index) IndexToColor_323(Index)
#elif (RGBMODE == 332)
	#define ColorToIndex(Color) ColorToIndex_332(Color)
	#define IndexToColor(Index) IndexToColor_332(Index)
#endif

void DrawBitmap(const BITMAP *pBitmap, unsigned short x0, unsigned short y0);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?