/// <summary> /// Releases all resources used by this bitmap. /// </summary> public void Dispose() { if (implementation != null) { implementation.Dispose(); } }
private void Dispose(bool disposing) { if (!disposed) { if (disposing) { if (implementation != null) { implementation.Dispose(); implementation = null; } } disposed = true; } }