bmp.h

来自「用于三星S3C44BOX ARM7芯片的Demon板测试」· C头文件 代码 · 共 44 行

H
44
字号
/*********************************************************************************************
* File:	bmp.H
* Author:	embest	
* Desc:	LCD bimap define file
* History:	
*********************************************************************************************/

#ifndef __BMP_H_
#define __BMP_H_

#include "def.h"

/* bitmap struct */
typedef struct BITMAP
{
    INT8U 		ucFlags;          	// combination of flags above
    INT8U 		ucBitsPix;        	// 1, 2, 4, or 8
    INT16U 		usWidth;        	// in pixels
    INT16U  	usHeight;        	// in pixels
    INT32U 		ulTransColor;     	// transparent color for > 8bpp bitmaps
    INT8U 		*pucStart;  		// bitmap data pointer
}STRU_BITMAP, *pSTRU_BITMAP;

/*--- macro define ---*/

#define BLACK 		0xf
#define WHITE 		0x0
#define LIGHTGRAY   0x5
#define DARKGRAY    0xa
#define TRANSPARENCY 0xff
INT8U * buf[30];
INT16 vcol,vrow;
INT16 pad; // between of two character

void CursorInit(void);
void CursorPush(INT16U x, INT16U y);
void CursorPop(void);

void BitmapPop(INT16U x, INT16U y, STRU_BITMAP Stru_Bitmap);
void BitmapView(INT16U x, INT16U y, STRU_BITMAP Stru_Bitmap);
void CursorView(INT16U x, INT16U y);

#endif /* __BMP_H_ */

⌨️ 快捷键说明

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