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

📄 bmpfmt.h

📁 convert bitmap for vxworks use format
💻 H
字号:
typedef unsigned int u32;
typedef unsigned short u16;
typedef unsigned char u8;
typedef unsigned char BYTE;

typedef struct bitmap_file_header_type {
	u16 type;
	u32 fileSize;
	u32 reserved;
	u32 offset;
} BMP_FILE_HDR;

typedef struct bitmap_info_header_type {
	u32 infoSize;
	u32 width;
	u32 height;
	u16 planes;
	u16 bitCount;
	u32 compression;
	u32 sizeImage;
	u32 xResolution;
	u32 yResolution;
	u32 colorUsed;
	u32 colorImportant;
} BMP_INFO_HDR;

typedef struct bitmap_rgb_quad_type {
	BYTE blue;
	BYTE green;
	BYTE red;
	BYTE reserved;
} BMP_RGB;

typedef struct bitmap_file_format {
struct bitmap_file_header_type filehdr;
	struct bitmap_info_header_type infohdr;
		struct bitmap_rgb_quad_type rgb[16];
} BMP_FMT;

enum bmp_state_define {
BMPSTATE_FILE_HDR,
BMPSTATE_INFO_HDR,
BMPSTATE_RGB,
BMPSTATE_DATA,
BMPSTATE_END
};

#define	 FILEINDEX_RGB 54

⌨️ 快捷键说明

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