Example #1
0
        public static Bitmap ScaleImageFixedRatio(Image image, int width, int height)
        {
            Size size = KeyGenerator.ScaleDimensions(image.Width, image.Height, width, height);

            return(KeyGenerator.ScaleImage(image, size.Width, size.Height));
        }