ImageProcessingOptions.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. }
  24. public enum ImageOutputFormat
  25. {
  26. Original,
  27. Bmp,
  28. Gif,
  29. Jpg,
  30. Png
  31. }
  32. }