Method DisposeBitmap
DisposeBitmap()
Releases the resources used by the bitmap object and sets it to null.
protected virtual void DisposeBitmap()
Remarks
This method is intended to be called to explicitly release the bitmap resource. It ensures that the bitmap is disposed safely and prevents memory leaks. Override this method in a derived class to provide additional cleanup logic, but ensure the base implementation is called to dispose the bitmap properly.