コード例 #1
0
        private static double ScaleFactor(double value, Orientation orientation, double dpiScale)
        {
            //This is a guard against possible unset scale value (which shouldn't happen)
            if (HostUtils.IsZero(value))
            {
                value = 1.0;
            }

            return(value * dpiScale);
        }
コード例 #2
0
        private static double ScaleFactor(double value, Orientation orientation)
        {
            //This is a guard against possible unset scale value (which shouldn't happen)
            if (HostUtils.IsZero(value))
            {
                value = 1.0;
            }

            return(value * HostUtils.PixelsPerInch(orientation) / systemWindowsPixelsPerInch);
        }