public static void Crop(string filename, Rectangle rect) { Bitmap original = new Bitmap(filename); Bitmap cropped = original.Clone(rect, PixelFormat.Format32bppArgb); original.Dispose(); cropped.Save(filename); cropped.Dispose(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)