protected virtual void Dispose(bool disposing) { if (disposing) { if (_decodedBitmap != null) { _decodedBitmap.Dispose(); } if (_jpgCompression != null) { _jpgCompression.Dispose(); } } }