📄 bmp.h
字号:
#ifndef BMP__H#define BMP__H#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <unistd.h>#define BMP_TORASTER_OFFSET 10#define BMP_SIZE_OFFSET 18#define BMP_BPP_OFFSET 28#define BMP_RLE_OFFSET 30#define BMP_COLOR_OFFSET 54#define FH_ERROR_OK 0#define FH_ERROR_FILE 1 /* read/access error */#define FH_ERROR_FORMAT 2 /* file format error */#define fill4B(a) ( ( 4 - ( (a) % 4 ) ) & 0x03)struct color { unsigned char red; unsigned char green; unsigned char blue;};extern void *fb_convert(unsigned char *rgbbuff, unsigned long count, int bpp);extern int fh_bmp_load(char *name, unsigned char *buffer, int x, int y);extern int fh_bmp_id(char *name);extern int fh_bmp_getsize(char *name, int *x, int *y);#endif //BMP__H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -