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)); }
public static Bitmap AForge_ResizeFast(this Bitmap bmp, Size size) { return(bmp.AForge_ResizeFast(size.Width, size.Height)); }