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
954 B

  1. /******************************Module*Header*******************************\
  2. * Module Name: CRotate.cpp
  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: 05-May-2000 - Jeff Vezina [t-jfvez]
  9. *
  10. * Copyright (c) 2000 Microsoft Corporation
  11. *
  12. \**************************************************************************/
  13. #include "CRotate.h"
  14. #include "CFuncTest.h"
  15. extern CFuncTest g_FuncTest;
  16. CRotate::CRotate(BOOL bRegression,int nAngle)
  17. {
  18. sprintf(m_szName,"Rotate %d",nAngle);
  19. m_bRegression=bRegression;
  20. m_nAngle=nAngle;
  21. }
  22. CRotate::~CRotate()
  23. {
  24. }
  25. void CRotate::Set(Graphics *g)
  26. {
  27. if (m_bUseSetting)
  28. {
  29. g->TranslateTransform(TESTAREAWIDTH/2.0f,TESTAREAHEIGHT/2.0f);
  30. g->RotateTransform((float)m_nAngle);
  31. g->TranslateTransform(-TESTAREAWIDTH/2.0f,-TESTAREAHEIGHT/2.0f);
  32. }
  33. }