private void save(Rectangle src, Rectangle dest, string fName, int width, int height, Bitmap file)
{
Bitmap result = new Bitmap(width, height);
Graphics g = Graphics.FromImage(result);
g.DrawImage(file, dest, src, GraphicsUnit.Pixel);
result.Save(fName);
g.Dispose();
result.Dispose();
result = null;
g = null;
}
It does write the files but for some reason even if the program is closed, it keeps hold of them.