CropBitmap() public static method

public static CropBitmap ( Bitmap bitmap, Rectangle crop_area ) : Bitmap
bitmap System.Drawing.Bitmap
crop_area System.Drawing.Rectangle
return System.Drawing.Bitmap
Esempio n. 1
0
 public static Bitmap BoundingBitmap(Bitmap bmp, int bound_color, out Rectangle crop_rect)
 {
     crop_rect = BoundingRectangle(bmp, new Rectangle(0, 0, bmp.Width, bmp.Height), bound_color);
     return(BitmapAnalyzer.CropBitmap(bmp, crop_rect));
 }