jellyfin/MediaBrowser.Controller/Drawing/ImageStream.cs

29 lines
648 B
C#
Raw Normal View History

using System;
2018-12-28 00:27:57 +01:00
using System.IO;
using MediaBrowser.Model.Drawing;
2018-12-28 00:27:57 +01:00
namespace MediaBrowser.Controller.Drawing
{
public class ImageStream : IDisposable
{
/// <summary>
/// Gets or sets the stream.
/// </summary>
/// <value>The stream.</value>
public Stream Stream { get; set; }
/// <summary>
/// Gets or sets the format.
/// </summary>
/// <value>The format.</value>
public ImageFormat Format { get; set; }
public void Dispose()
{
if (Stream != null)
{
Stream.Dispose();
}
}
}
}