UnitConversion.h
上传用户:kairuinn
上传日期:2009-02-07
资源大小:2922k
文件大小:0k
源码类别:

图形图象

开发平台:

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_