private static Image cropImage(Image img, Rectangle cropArea) { var bmpImage = new Bitmap(img); Bitmap bmpCrop = bmpImage.Clone(cropArea, bmpImage.PixelFormat); img.Dispose(); bmpCrop.Save(@"D:\Work\CropImage\CropImage\crop.bmp",bmpImage.RawFormat ); return (Image)(bmpCrop); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)