protected override void OnDestroy() { base.OnDestroy(); codec?.Dispose(); codec = null; }
public void Dispose() { _bitmap?.Dispose(); _codec?.Dispose(); _image?.Dispose(); if (_disposeStream) { _stream?.Dispose(); } }
protected override void OnDestroy() { base.OnDestroy(); codec?.Dispose(); codec = null; }
public void Dispose() { _bitmap?.Dispose(); _codec?.Dispose(); _image?.Dispose(); if (_disposeStream) { _stream?.Dispose(); } }