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.

38 lines
1.0 KiB

  1. /******************************Module*Header*******************************\
  2. * Module Name: CBitmap.h
  3. *
  4. * This file contains the code to support the functionality test harness
  5. * for GDI+. This includes menu options and calling the appropriate
  6. * functions for execution.
  7. *
  8. * Created: 08-08-2000 - asecchia
  9. *
  10. * Copyright (c) 2000 Microsoft Corporation
  11. *
  12. \**************************************************************************/
  13. #ifndef __CBITMAP_H
  14. #define __CBITMAP_H
  15. #include "COutput.h"
  16. class CBitmap : public COutput
  17. {
  18. public:
  19. CBitmap(BOOL bRegression, PixelFormat pixelFormat);
  20. virtual ~CBitmap();
  21. Graphics *PreDraw(int &nOffsetX,int &nOffsetY); // Set up graphics at the given X,Y offset
  22. void PostDraw(RECT rTestArea); // Finish off graphics at rTestArea
  23. BOOL WriteBitmap(char *szTitle, HBITMAP hbitmap, INT width, INT height);
  24. void InitPalettes(); // Initialize palettes
  25. Bitmap *m_bmp;
  26. PixelFormat m_PixelFormat; // # of bits to use
  27. };
  28. #endif