📄 bmp.h
字号:
#ifndef BMP_H#define BMP_Htypedef struct _WinBMPFileHeader { u16 FileType; /* File type, always 4D42h ("BM") */ u16 FileSizeLow; /* Size of the file in bytes */ u16 FileSizeHigh; /* Size of the file in bytes */ u16 Reserved1; /* Always 0 */ u16 Reserved2; /* Always 0 */ u16 BitmapOffsetLow; /* Starting position of image data in bytes */ u16 BitmapOffsetHigh; /* Starting position of image data in bytes */} WINBMPFILEHEADER;typedef struct _Win2xBitmapHeader{ u16 SizeLow; /* Size of this header in bytes */ u16 SizeHigh; s16 Width; /* Image width in pixels */ s16 Height; /* Image height in pixels */ u16 Planes; /* Number of color planes */ u16 BitsPerPixel; /* Number of bits per pixel */} WIN2XBITMAPHEADER;typedef struct _Win2xPaletteElement { u8 Blue; /* Blue component */ u8 Green; /* Green component */ u8 Red; /* Red component */} WIN2XPALETTEELEMENT;#endif /* BMP_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -