image_bmp.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * File : image_bmp.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2006 - 2009, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2010-08-10 Bernard first version
  13. */
  14. #ifndef __RTGUI_IMAGE_BMP_H__
  15. #define __RTGUI_IMAGE_BMP_H__
  16. #pragma pack(push)
  17. #pragma pack(2)
  18. struct rtgui_image_bmp_header
  19. {
  20. /* The Win32 BMP file header (14 bytes) */
  21. rt_uint16_t bfType;
  22. rt_uint32_t bfSize;
  23. rt_uint16_t bfReserved1;
  24. rt_uint16_t bfReserved2;
  25. rt_uint32_t bfOffBits;
  26. /* The Win32 BITMAPINFOHEADER struct (40 bytes) */
  27. rt_uint32_t biSize;
  28. rt_int32_t biWidth;
  29. rt_int32_t biHeight;
  30. rt_uint16_t biPlanes;
  31. rt_uint16_t biBitCount;
  32. rt_uint32_t biCompression;
  33. rt_uint32_t biSizeImage;
  34. rt_int32_t biXPelsPerMeter;
  35. rt_int32_t biYPelsPerMeter;
  36. rt_uint32_t biClrUsed;
  37. rt_uint32_t biClrImportant;
  38. };
  39. #pragma pack(pop)
  40. void rtgui_image_bmp_init(void);
  41. #endif