SplashscreenOptions.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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, int width = 1920, int height = 1080, bool applyFilter = false)
  19. {
  20. PortraitInputPaths = portraitInputPaths;
  21. LandscapeInputPaths = landscapeInputPaths;
  22. OutputPath = outputPath;
  23. Width = width;
  24. Height = height;
  25. ApplyFilter = applyFilter;
  26. }
  27. /// <summary>
  28. /// Gets or sets the poster input paths.
  29. /// </summary>
  30. public IReadOnlyList<string> PortraitInputPaths { get; set; }
  31. /// <summary>
  32. /// Gets or sets the landscape input paths.
  33. /// </summary>
  34. public IReadOnlyList<string> LandscapeInputPaths { get; set; }
  35. /// <summary>
  36. /// Gets or sets the output path.
  37. /// </summary>
  38. public string OutputPath { get; set; }
  39. /// <summary>
  40. /// Gets or sets the width.
  41. /// </summary>
  42. public int Width { get; set; }
  43. /// <summary>
  44. /// Gets or sets the height.
  45. /// </summary>
  46. public int Height { get; set; }
  47. /// <summary>
  48. /// Gets or sets a value indicating whether to apply a darkening filter at the end.
  49. /// </summary>
  50. public bool ApplyFilter { get; set; }
  51. }
  52. }