#pragma warning disable CA1711, CS1591 using System; using System.IO; using MediaBrowser.Model.Drawing; namespace MediaBrowser.Controller.Drawing { public class ImageStream : IDisposable { public ImageStream(Stream stream) { Stream = stream; } /// /// Gets the stream. /// /// The stream. public Stream Stream { get; } /// /// Gets or sets the format. /// /// The format. public ImageFormat Format { get; set; } public void Dispose() { Dispose(true); GC.SuppressFinalize(this); } protected virtual void Dispose(bool disposing) { if (disposing) { Stream?.Dispose(); } } } }