Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
811 B

  1. #ifndef _DIBUTIL_H_
  2. #define _DIBUTIL_H_
  3. /* DIB constants */
  4. #define PALVERSION 0x300
  5. /* DIB macros */
  6. #define IS_WIN30_DIB(lpbi) ((*(LPDWORD)(lpbi)) == sizeof(BITMAPINFOHEADER))
  7. /* Handle to a DIB */
  8. #define HDIB HANDLE
  9. UINT GetDeviceNumColors(HDC hdc);
  10. HANDLE LoadDIB(LPTSTR lpFileName);
  11. HPALETTE CreateDIBPalette(HDIB hDIB);
  12. HBITMAP DIBToBitmap(HDIB hDIB, HPALETTE hPal);
  13. WORD DestroyDIB(HDIB hDib);
  14. HPALETTE BuildPalette(HDC hdc);
  15. void DrawBitmap (HDC hdc, HBITMAP hBitmap, int xStart, int yStart);
  16. void DrawTransparentBitmap(
  17. HDC hdc, // The destination DC.
  18. HBITMAP hBitmap, // The bitmap to be drawn.
  19. int xPos, // X coordinate.
  20. int yPos, // Y coordinate.
  21. COLORREF col); // The color for transparent
  22. #endif