00001
00051 #ifndef INC_MI32_SCRNUNIT_H
00052 #define INC_MI32_SCRNUNIT_H
00053
00054 #ifndef INC_MI32_STDDEFNS_H
00055 #include <mi32/stddefns.h>
00056 #endif
00057
00060 enum SCREENUNIT {
00061 SCREENUNIT_Inches = 0,
00062 SCREENUNIT_Millimeters = 1,
00063 SCREENUNIT_mm = SCREENUNIT_Millimeters,
00064 SCREENUNIT_Points = 2,
00065 SCREENUNIT_Pixels = 3,
00066 SCREENUNIT_1OverInches = 4,
00067 SCREENUNIT_MetersAtCurrentScale = 5,
00068 SCREENUNIT_Arbitrary = 6,
00069 SCREENUNIT_Object = 7,
00070 SCREENUNIT_COUNT = 8
00071 };
00072
00073
00076 double ConvertScreenUnits (
00077 double val,
00078 double mmPerPixel,
00079 double MapScale,
00080 int iunit,
00081 int ounit
00082 );
00083
00086 double ConvertScreenUnits (
00087 double val,
00088 int iunit,
00089 int ounit,
00090 double MapScale = 1.0
00091 );
00092
00094 double GetScreenPixelSizeMM (
00095 );
00096
00097 #ifdef WIN32_NATIVE
00099 double MwinGetPixelSizeMM (
00100 void *hdc
00101 );
00102 #endif
00103
00104 #endif // INC_MI32_SCRNUNIT_H