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.

56 lines
1.4 KiB

  1. /**************************************************************************
  2. *
  3. * Copyright (c) 2000 Microsoft Corporation
  4. *
  5. * Module Name:
  6. *
  7. * CachedBitmap driver data structure.
  8. *
  9. * Created:
  10. *
  11. * 04/28/2000 asecchia
  12. * Created it.
  13. *
  14. **************************************************************************/
  15. #ifndef _DPCACHEDBITMAP_HPP
  16. #define _DPCACHEDBITMAP_HPP
  17. struct EpScanRecord;
  18. //--------------------------------------------------------------------------
  19. // Represent the CachedBitmap information for the driver.
  20. //--------------------------------------------------------------------------
  21. class DpCachedBitmap
  22. {
  23. public:
  24. INT Width;
  25. INT Height;
  26. // pointer to the pixel data.
  27. void *Bits; // The start of the memory buffer. It might not
  28. // be QWORD aligned, so it's not necessarily
  29. // equal to RecordStart.
  30. EpScanRecord *RecordStart; // The first scan record
  31. EpScanRecord *RecordEnd; // Just past the last scan record
  32. // Store the pixel format for the runs of opaque and semitransparent
  33. // pixels.
  34. PixelFormat OpaqueFormat;
  35. PixelFormat SemiTransparentFormat;
  36. DpCachedBitmap()
  37. {
  38. OpaqueFormat = PixelFormat32bppPARGB;
  39. SemiTransparentFormat = PixelFormat32bppPARGB;
  40. Bits = NULL;
  41. Width = 0;
  42. Height = 0;
  43. }
  44. };
  45. #endif