DIBUTIL.H 707 B

12345678910111213141516171819202122232425
  1. /* PortTool v2.2 dibutil.h */
  2. /*
  3. * dibutil.h
  4. *
  5. * Copyright 1991-1998 Microsoft Corporation. All rights reserved.
  6. *
  7. * Header file for Device-Independent Bitmap (DIB) API. Provides
  8. * function prototypes and constants for the following functions:
  9. *
  10. * AllocRoomForDIB() - Allocates memory for a DIB
  11. *
  12. */
  13. /* DIB constants */
  14. #define PALVERSION 0x300
  15. /* DIB macros */
  16. #define IS_WIN30_DIB(lpbi) ((*(LPDWORD)(lpbi)) == sizeof(BITMAPINFOHEADER))
  17. #define RECTWIDTH(lpRect) ((lpRect)->right - (lpRect)->left)
  18. #define RECTHEIGHT(lpRect) ((lpRect)->bottom - (lpRect)->top)
  19. /* function prototypes */
  20. HANDLE AllocRoomForDIB(BITMAPINFOHEADER bi, HBITMAP hBitmap);