📄 bmp.h
字号:
/*********************************************************************************************
* File: bmp.H
* Author: embest
* Desc: LCD bimap define file
* History:
*********************************************************************************************/
#ifndef __BMP_H_
#define __BMP_H_
#include "def.h"
/*------------------------------------------------------------------------------------------*/
/* macro define */
/*------------------------------------------------------------------------------------------*/
#define BLACK 0xf
#define WHITE 0x0
#define LIGHTGRAY 0x5
#define DARKGRAY 0xa
#define TRANSPARENCY 0xff
/* bitmap struct */
typedef struct BITMAP
{
UINT8T ucFlags; // combination of flags above
UINT8T ucBitsPix; // 1, 2, 4, or 8
UINT16T usWidth; // in pixels
UINT16T usHeight; // in pixels
UINT32T ulTransColor; // transparent color for > 8bpp bitmaps
UINT8T *pucStart; // bitmap data pointer
}STRU_BITMAP, *pSTRU_BITMAP;
/*------------------------------------------------------------------------------------------*/
/* function declare */
/*------------------------------------------------------------------------------------------*/
void cursor_init(void);
void cursor_push(UINT16T x, UINT16T y);
void cursor_pop(void);
void cursor_view(UINT16T x, UINT16T y);
void bitmap_pop(UINT16T x, UINT16T y, STRU_BITMAP Stru_Bitmap);
void bitmap_view(UINT16T x, UINT16T y, STRU_BITMAP Stru_Bitmap);
#endif /* __BMP_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -