2
0

ImageOptions.cs 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. using System;
  2. using MediaBrowser.Model.Entities;
  3. namespace MediaBrowser.Model.Dto
  4. {
  5. /// <summary>
  6. /// Class ImageOptions
  7. /// </summary>
  8. public class ImageOptions
  9. {
  10. /// <summary>
  11. /// Gets or sets the type of the image.
  12. /// </summary>
  13. /// <value>The type of the image.</value>
  14. public ImageType ImageType { get; set; }
  15. /// <summary>
  16. /// Gets or sets the index of the image.
  17. /// </summary>
  18. /// <value>The index of the image.</value>
  19. public int? ImageIndex { get; set; }
  20. /// <summary>
  21. /// Gets or sets the width.
  22. /// </summary>
  23. /// <value>The width.</value>
  24. public int? Width { get; set; }
  25. /// <summary>
  26. /// Gets or sets the height.
  27. /// </summary>
  28. /// <value>The height.</value>
  29. public int? Height { get; set; }
  30. /// <summary>
  31. /// Gets or sets the width of the max.
  32. /// </summary>
  33. /// <value>The width of the max.</value>
  34. public int? MaxWidth { get; set; }
  35. /// <summary>
  36. /// Gets or sets the height of the max.
  37. /// </summary>
  38. /// <value>The height of the max.</value>
  39. public int? MaxHeight { get; set; }
  40. /// <summary>
  41. /// Gets or sets the quality.
  42. /// </summary>
  43. /// <value>The quality.</value>
  44. public int? Quality { get; set; }
  45. /// <summary>
  46. /// Gets or sets the image tag.
  47. /// If set this will result in strong, unconditional response caching
  48. /// </summary>
  49. /// <value>The hash.</value>
  50. public Guid? Tag { get; set; }
  51. /// <summary>
  52. /// Gets or sets a value indicating whether [crop whitespace].
  53. /// </summary>
  54. /// <value><c>null</c> if [crop whitespace] contains no value, <c>true</c> if [crop whitespace]; otherwise, <c>false</c>.</value>
  55. public bool? CropWhitespace { get; set; }
  56. /// <summary>
  57. /// Gets or sets a value indicating whether [enable image enhancers].
  58. /// </summary>
  59. /// <value><c>true</c> if [enable image enhancers]; otherwise, <c>false</c>.</value>
  60. public bool EnableImageEnhancers { get; set; }
  61. }
  62. }