예제 #1
0
        private static double GetNormaliseFactor(Direction Axis)
        {
            switch (Axis)
            {
            case Direction.HORIZONTAL:
                return((double)65535 / NM.GetSystemMetrics(NM.SystemMetric.SM_CXSCREEN));

            case Direction.VERTICAL:
                return((double)65535 / NM.GetSystemMetrics(NM.SystemMetric.SM_CYSCREEN));
            }
            return(0);
        }