From 4ba168c8a1be41d1c9db581bc79f170e24327d19 Mon Sep 17 00:00:00 2001 From: David Ullmer Date: Sun, 15 Aug 2021 20:32:08 +0200 Subject: Add splashscreen builder --- .../Drawing/SplashscreenOptions.cs | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 MediaBrowser.Controller/Drawing/SplashscreenOptions.cs (limited to 'MediaBrowser.Controller/Drawing/SplashscreenOptions.cs') diff --git a/MediaBrowser.Controller/Drawing/SplashscreenOptions.cs b/MediaBrowser.Controller/Drawing/SplashscreenOptions.cs new file mode 100644 index 000000000..d70773d8f --- /dev/null +++ b/MediaBrowser.Controller/Drawing/SplashscreenOptions.cs @@ -0,0 +1,59 @@ +using System.Collections.Generic; + +namespace MediaBrowser.Controller.Drawing +{ + /// + /// Options used to generate the splashscreen. + /// + public class SplashscreenOptions + { + /// + /// Initializes a new instance of the class. + /// + /// The portrait input paths. + /// The landscape input paths. + /// The output path. + /// Optional. The image width. + /// Optional. The image height. + /// Optional. Apply a darkening filter. + public SplashscreenOptions(IReadOnlyList portraitInputPaths, IReadOnlyList landscapeInputPaths, string outputPath, int width = 1920, int height = 1080, bool applyFilter = false) + { + PortraitInputPaths = portraitInputPaths; + LandscapeInputPaths = landscapeInputPaths; + OutputPath = outputPath; + Width = width; + Height = height; + ApplyFilter = applyFilter; + } + + /// + /// Gets or sets the poster input paths. + /// + public IReadOnlyList PortraitInputPaths { get; set; } + + /// + /// Gets or sets the landscape input paths. + /// + public IReadOnlyList LandscapeInputPaths { get; set; } + + /// + /// Gets or sets the output path. + /// + public string OutputPath { get; set; } + + /// + /// Gets or sets the width. + /// + public int Width { get; set; } + + /// + /// Gets or sets the height. + /// + public int Height { get; set; } + + /// + /// Gets or sets a value indicating whether to apply a darkening filter at the end. + /// + public bool ApplyFilter { get; set; } + } +} -- cgit v1.2.3