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.

102 lines
1.6 KiB

  1. /*++
  2. * File name:
  3. * bmplib.h
  4. * Contents:
  5. * bmplib export functions
  6. *
  7. * Copyright (C) 1998-1999 Microsoft Corp.
  8. *
  9. * History:
  10. * September, 1999 - created [vladimis]
  11. --*/
  12. #ifndef _BMPAPI_H
  13. #define BMPAPI __stdcall
  14. #define IS_WIN30_DIB(lpbi) ((*(LPDWORD)(lpbi)) == sizeof(BITMAPINFOHEADER))
  15. #define WIDTHBYTES(bits) (((bits) + 31) / 32 * 4)
  16. #define DIB_HEADER_MARKER ((WORD) ('M' << 8) | 'B')
  17. typedef
  18. BOOL
  19. (BMPAPI * PFNCOMPARECALLBACK )(
  20. LPBITMAPINFO pDIB1,
  21. LPBITMAPINFO pDIB2,
  22. INT x,
  23. INT y,
  24. COLORREF clrPix1,
  25. COLORREF clxPix2,
  26. PVOID pUser,
  27. BOOL *pbOverride
  28. );
  29. LPSTR
  30. BMPAPI
  31. FindDIBBits(
  32. LPSTR lpDIB
  33. );
  34. HBITMAP
  35. BMPAPI
  36. DIBToBitmap(
  37. LPVOID pDIB,
  38. HPALETTE hPal
  39. );
  40. HANDLE
  41. BMPAPI
  42. BitmapToDIB(
  43. HBITMAP hBitmap,
  44. HPALETTE hPal
  45. );
  46. BOOL
  47. BMPAPI
  48. SaveDIB(
  49. LPVOID pDib,
  50. LPCSTR lpFileName
  51. );
  52. HANDLE
  53. BMPAPI
  54. ReadDIBFile(
  55. HANDLE hFile
  56. );
  57. BOOL
  58. BMPAPI
  59. SaveBitmapInFile(
  60. HBITMAP hBitmap,
  61. LPCSTR szFileName
  62. );
  63. BOOL
  64. BMPAPI
  65. CompareTwoDIBs(
  66. LPVOID pDIB1,
  67. LPVOID pDIB2,
  68. HBITMAP *phbmpOutput,
  69. PFNCOMPARECALLBACK lpfnCallback,
  70. PVOID pUser
  71. );
  72. BOOL
  73. BMPAPI
  74. CompareTwoBitmapFiles(
  75. LPCSTR szFile1,
  76. LPCSTR szFile2,
  77. LPCSTR szResultFileName,
  78. PFNCOMPARECALLBACK lpfnCallback,
  79. PVOID pUser
  80. );
  81. BOOL
  82. GetScreenDIB(
  83. INT left,
  84. INT top,
  85. INT right,
  86. INT bottom,
  87. HANDLE *phDIB
  88. );
  89. #endif // _BMPAPI_H