bmp.h

来自「小程序,但是有点用出处的.进攻参考.请多多提意见.」· C头文件 代码 · 共 32 行

H
32
字号
#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 + =
减小字号Ctrl + -
显示快捷键?