示例#1
0
 public static Bitmap ScaleImage(Image image, Size size)
 {
     return(KeyGenerator.ScaleImage(image, size.Width, size.Height));
 }
示例#2
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));
        }