Exemplo n.º 1
0
        public static Bitmap AForge_ResizeFast(this Bitmap bmp, decimal percentage)
        {
            if (bmp.IsNullOrEmpty())
            {
                return(null);
            }

            int width  = (int)((decimal)bmp.Width).FindValueByPercentages(100, percentage);
            int height = (int)((decimal)bmp.Height).FindValueByPercentages(100, percentage);

            return(bmp.AForge_ResizeFast(width, height));
        }
Exemplo n.º 2
0
 public static Bitmap AForge_ResizeFast(this Bitmap bmp, Size size)
 {
     return(bmp.AForge_ResizeFast(size.Width, size.Height));
 }