UnitConversion.h
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 0k
Category:

Graph program

Development Platform:

Visual C++

  1. #ifndef _UNITCONVERSION_H_
  2. #define _UNITCONVERSION_H_
  3. class CUnitConversion {
  4. public:
  5. static void Init( int resolution );
  6. static double PixelsToInches( int pixels );
  7. static double PixelsToCentimeters( int pixels );
  8. static int InchesToPixels( double inches );
  9. static int CentimeterToPixels( double centimeters );
  10. static int PointsToPixels( int points );
  11. static int s_resolution;
  12. };
  13. #endif //_UNITCONVERSION_H_