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); }
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); }