jellyfin/MediaBrowser.Controller/Drawing/ImageStream.cs

30 lines
687 B
C#
Raw Normal View History

2014-11-29 19:51:30 +00:00
using MediaBrowser.Model.Drawing;
using System;
using System.IO;
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();
}
2017-09-05 19:49:02 +00:00
GC.SuppressFinalize(this);
2014-11-29 19:51:30 +00:00
}
}
}