public void Dispose() { if (_bitmap!=null) { _bitmap.Dispose(); _bitmap = null; } if (_graphics!=null) { _graphics.Dispose(); _graphics = null; } }