C#: Dispose() a Bitmap object after call Bitmap.save()?
bitmap, c#, dispose
Solution
I would use `using` block and `Path.Combine`
using(var bmp = new Bitmap(image))
{
// image processing
bmp.Save(Path.Combine(path ,fileName));
}
Problem
I have this: ``` Bitmap bmp = new Bitmap(image); //image processing bmp.Save(path + fileName); ``` and I want to know if I need to call `bmp.Dispose()` after this code. Thanks in advance.