How can I write an application that will crop images in C#?
Cropping an image is very easy in C#. However, doing the stuff how are you going to manage the cropping of your image will be a little harder.
Sample below is the way how to crop an image in C#.
var filename = @"c:\personal\images\horizon.png";
var img = Image.FromFile(filename);
var rect = new Rectangle(new Point(0, 0), img.Size);
var cloned = new Bitmap(img).Clone(rect, img.PixelFormat);
var bitmap = new Bitmap(cloned, new Size(50, 50));
cloned.Dispose();