⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitmap.h

📁 广州微嵌科技 "WQ44B0开发板"的显示位图程序源代码。此程序可以显示由uCGUI位图转换工具生成的位图C文件,ADS 1.2编译环境
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -