ImageProcessingOptions.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. using MediaBrowser.Controller.Entities;
  2. using MediaBrowser.Controller.Providers;
  3. using MediaBrowser.Model.Entities;
  4. using System;
  5. using System.Collections.Generic;
  6. namespace MediaBrowser.Controller.Drawing
  7. {
  8. public class ImageProcessingOptions
  9. {
  10. public BaseItem Item { get; set; }
  11. public ImageType ImageType { get; set; }
  12. public int ImageIndex { get; set; }
  13. public string OriginalImagePath { get; set; }
  14. public DateTime OriginalImageDateModified { get; set; }
  15. public bool CropWhiteSpace { get; set; }
  16. public int? Width { get; set; }
  17. public int? Height { get; set; }
  18. public int? MaxWidth { get; set; }
  19. public int? MaxHeight { get; set; }
  20. public int? Quality { get; set; }
  21. public List<IImageEnhancer> Enhancers { get; set; }
  22. public ImageOutputFormat OutputFormat { get; set; }
  23. public ImageOverlay Indicator { get; set; }
  24. }
  25. public enum ImageOutputFormat
  26. {
  27. Original,
  28. Bmp,
  29. Gif,
  30. Jpg,
  31. Png
  32. }
  33. public enum ImageOverlay
  34. {
  35. None,
  36. Watched
  37. }
  38. }