ImageOptions.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. using MediaBrowser.Model.Drawing;
  2. using MediaBrowser.Model.Entities;
  3. using System;
  4. namespace MediaBrowser.Model.Dto
  5. {
  6. /// <summary>
  7. /// Class ImageOptions
  8. /// </summary>
  9. public class ImageOptions
  10. {
  11. /// <summary>
  12. /// Gets or sets the type of the image.
  13. /// </summary>
  14. /// <value>The type of the image.</value>
  15. public ImageType ImageType { get; set; }
  16. /// <summary>
  17. /// Gets or sets the index of the image.
  18. /// </summary>
  19. /// <value>The index of the image.</value>
  20. public int? ImageIndex { get; set; }
  21. /// <summary>
  22. /// Gets or sets the width.
  23. /// </summary>
  24. /// <value>The width.</value>
  25. public int? Width { get; set; }
  26. /// <summary>
  27. /// Gets or sets the height.
  28. /// </summary>
  29. /// <value>The height.</value>
  30. public int? Height { get; set; }
  31. /// <summary>
  32. /// Gets or sets the width of the max.
  33. /// </summary>
  34. /// <value>The width of the max.</value>
  35. public int? MaxWidth { get; set; }
  36. /// <summary>
  37. /// Gets or sets the height of the max.
  38. /// </summary>
  39. /// <value>The height of the max.</value>
  40. public int? MaxHeight { get; set; }
  41. /// <summary>
  42. /// Gets or sets the quality.
  43. /// </summary>
  44. /// <value>The quality.</value>
  45. public int? Quality { get; set; }
  46. /// <summary>
  47. /// Gets or sets the image tag.
  48. /// If set this will result in strong, unconditional response caching
  49. /// </summary>
  50. /// <value>The hash.</value>
  51. public Guid? Tag { get; set; }
  52. /// <summary>
  53. /// Gets or sets a value indicating whether [crop whitespace].
  54. /// </summary>
  55. /// <value><c>null</c> if [crop whitespace] contains no value, <c>true</c> if [crop whitespace]; otherwise, <c>false</c>.</value>
  56. public bool? CropWhitespace { get; set; }
  57. /// <summary>
  58. /// Gets or sets a value indicating whether [enable image enhancers].
  59. /// </summary>
  60. /// <value><c>true</c> if [enable image enhancers]; otherwise, <c>false</c>.</value>
  61. public bool EnableImageEnhancers { get; set; }
  62. /// <summary>
  63. /// Gets or sets the format.
  64. /// </summary>
  65. /// <value>The format.</value>
  66. public ImageOutputFormat Format { get; set; }
  67. /// <summary>
  68. /// Gets or sets a value indicating whether [add played indicator].
  69. /// </summary>
  70. /// <value><c>true</c> if [add played indicator]; otherwise, <c>false</c>.</value>
  71. public bool AddPlayedIndicator { get; set; }
  72. /// <summary>
  73. /// Gets or sets the percent played.
  74. /// </summary>
  75. /// <value>The percent played.</value>
  76. public int? PercentPlayed { get; set; }
  77. /// <summary>
  78. /// Gets or sets the color of the background.
  79. /// </summary>
  80. /// <value>The color of the background.</value>
  81. public string BackgroundColor { get; set; }
  82. /// <summary>
  83. /// Initializes a new instance of the <see cref="ImageOptions" /> class.
  84. /// </summary>
  85. public ImageOptions()
  86. {
  87. EnableImageEnhancers = true;
  88. Format = ImageOutputFormat.Original;
  89. }
  90. }
  91. }