Bitmap bmp = new Bitmap("image.bmp"); // use bmp object... bmp.Dispose(); // release resourcesIn this example, we first create a Bitmap object and use it for image processing. Once we are done with the object, we call the `Dispose` method to release all memory and resources associated with the object. This method is part of the `System.Drawing` namespace, which is part of the .NET Framework class library.