1
0

winbmp.h 862 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __WINBMP_H
  2. #define __WINBMP_H
  3. typedef struct tagWINRGBQUAD
  4. {
  5. BYTE rgbBlue;
  6. BYTE rgbGreen;
  7. BYTE rgbRed;
  8. BYTE rgbReserved;
  9. } WINRGBQUAD;
  10. typedef struct tagWINBITMAPFILEHEADER
  11. {
  12. WORD bfType;
  13. LONG bfSize;
  14. WORD bfReserved1;
  15. WORD bfReserved2;
  16. LONG bfOffBits;
  17. } WINBITMAPFILEHEADER;
  18. typedef struct tagWINBITMAPINFOHEADER
  19. {
  20. LONG biSize;
  21. LONG biWidth;
  22. LONG biHeight;
  23. WORD biPlanes;
  24. WORD biBitCount;
  25. LONG biCompression;
  26. LONG biSizeImage;
  27. LONG biXPelsPerMeter;
  28. LONG biYPelsPerMeter;
  29. LONG biClrUsed;
  30. LONG biClrImportant;
  31. } WINBITMAPINFOHEADER;
  32. typedef struct tagWINBITMAPINFO
  33. {
  34. WINBITMAPINFOHEADER bmiHeader;
  35. WINRGBQUAD bmiColors[1];
  36. } WINBITMAPINFO;
  37. #define BI_RGB 0L
  38. #define BI_RLE8 1L
  39. #define BI_RLE4 2L
  40. #define BI_BITFIELDS 3L
  41. #endif