📄 bitmap.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 + -