ImageOptions.cs 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. 
  2. using System;
  3. using MediaBrowser.Model.Entities;
  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. }
  63. }