Exemple #1
0
        public static double GetFitToAreaScalingFactor(SD.Size input, SD.Size max, bool only_scale_down)
        {
            if (only_scale_down && input.FitsInside(max))
            {
                return(1.0);
            }

            return(GetFitToAreaScalingFactor(input.Width, input.Height, max.Width, max.Height));
        }