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.

45 lines
1001 B

  1. /**************************************************************************\
  2. *
  3. * Copyright (c) 2000 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * Compatible DIBSections
  8. *
  9. * Abstract:
  10. *
  11. * Create a DIB section with an optimal format w.r.t. the specified hdc.
  12. * CreateSemiCompatibleDIB makes an exception if the format is <8bpp;
  13. * in such a case it returns an 8bpp DIBSection.
  14. *
  15. * Notes:
  16. *
  17. * History:
  18. *
  19. * 01/23/1996 gilmanw
  20. * Created it.
  21. * 01/21/2000 agodfrey
  22. * Added it to GDI+ (from Gilman's 'fastdib.c'), and morphed it into
  23. * 'CreateSemiCompatibleDIB'.
  24. *
  25. \**************************************************************************/
  26. #ifndef _COMPATIBLEDIB_HPP
  27. #define _COMPATIBLEDIB_HPP
  28. PixelFormatID
  29. ExtractPixelFormatFromHDC(
  30. HDC hdc
  31. );
  32. HBITMAP
  33. CreateSemiCompatibleDIB(
  34. HDC hdc,
  35. ULONG ulWidth,
  36. ULONG ulHeight,
  37. ColorPalette *palette,
  38. PVOID *ppvBits,
  39. PixelFormatID *pixelFormat
  40. );
  41. #endif