using MediaBrowser.Model.Drawing;
using MediaBrowser.Model.Entities;
using System;
namespace MediaBrowser.Model.Dto
{
///
/// Class ImageOptions
///
public class ImageOptions
{
///
/// Gets or sets the type of the image.
///
/// The type of the image.
public ImageType ImageType { get; set; }
///
/// Gets or sets the index of the image.
///
/// The index of the image.
public int? ImageIndex { get; set; }
///
/// Gets or sets the width.
///
/// The width.
public int? Width { get; set; }
///
/// Gets or sets the height.
///
/// The height.
public int? Height { get; set; }
///
/// Gets or sets the width of the max.
///
/// The width of the max.
public int? MaxWidth { get; set; }
///
/// Gets or sets the height of the max.
///
/// The height of the max.
public int? MaxHeight { get; set; }
///
/// Gets or sets the quality.
///
/// The quality.
public int? Quality { get; set; }
///
/// Gets or sets the image tag.
/// If set this will result in strong, unconditional response caching
///
/// The hash.
public Guid? Tag { get; set; }
///
/// Gets or sets a value indicating whether [crop whitespace].
///
/// null if [crop whitespace] contains no value, true if [crop whitespace]; otherwise, false.
public bool? CropWhitespace { get; set; }
///
/// Gets or sets a value indicating whether [enable image enhancers].
///
/// true if [enable image enhancers]; otherwise, false.
public bool EnableImageEnhancers { get; set; }
public ImageOutputFormat Format { get; set; }
public ImageOverlay Indicator { get; set; }
public ImageOptions()
{
EnableImageEnhancers = true;
Format = ImageOutputFormat.Original;
Indicator = ImageOverlay.None;
}
}
}