SplashscreenOptions.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System.Collections.Generic;
  2. namespace MediaBrowser.Controller.Drawing
  3. {
  4. /// <summary>
  5. /// Options used to generate the splashscreen.
  6. /// </summary>
  7. public class SplashscreenOptions
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="SplashscreenOptions"/> class.
  11. /// </summary>
  12. /// <param name="portraitInputPaths">The portrait input paths.</param>
  13. /// <param name="landscapeInputPaths">The landscape input paths.</param>
  14. /// <param name="outputPath">The output path.</param>
  15. /// <param name="width">Optional. The image width.</param>
  16. /// <param name="height">Optional. The image height.</param>
  17. /// <param name="applyFilter">Optional. Apply a darkening filter.</param>
  18. public SplashscreenOptions(IReadOnlyList<string> portraitInputPaths, IReadOnlyList<string> landscapeInputPaths, string outputPath, bool applyFilter = false)
  19. {
  20. PortraitInputPaths = portraitInputPaths;
  21. LandscapeInputPaths = landscapeInputPaths;
  22. OutputPath = outputPath;
  23. ApplyFilter = applyFilter;
  24. }
  25. /// <summary>
  26. /// Gets or sets the poster input paths.
  27. /// </summary>
  28. public IReadOnlyList<string> PortraitInputPaths { get; set; }
  29. /// <summary>
  30. /// Gets or sets the landscape input paths.
  31. /// </summary>
  32. public IReadOnlyList<string> LandscapeInputPaths { get; set; }
  33. /// <summary>
  34. /// Gets or sets the output path.
  35. /// </summary>
  36. public string OutputPath { get; set; }
  37. /// <summary>
  38. /// Gets or sets a value indicating whether to apply a darkening filter at the end.
  39. /// </summary>
  40. public bool ApplyFilter { get; set; }
  41. }
  42. }