2020-08-22 15:56:24 -04:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 15:01:16 -05:00
|
|
|
using System;
|
2018-12-27 18:27:57 -05:00
|
|
|
using System.IO;
|
2019-01-13 14:25:32 -05:00
|
|
|
using MediaBrowser.Model.Drawing;
|
2018-12-27 18:27:57 -05: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; }
|
2020-08-22 15:56:24 -04:00
|
|
|
|
2018-12-27 18:27:57 -05:00
|
|
|
/// <summary>
|
|
|
|
/// Gets or sets the format.
|
|
|
|
/// </summary>
|
|
|
|
/// <value>The format.</value>
|
|
|
|
public ImageFormat Format { get; set; }
|
|
|
|
|
|
|
|
public void Dispose()
|
|
|
|
{
|
|
|
|
if (Stream != null)
|
|
|
|
{
|
|
|
|
Stream.Dispose();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|