aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Drawing/SplashscreenOptions.cs
blob: d70773d8f8f1a44d2620081a07642e68bb418abd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System.Collections.Generic;

namespace MediaBrowser.Controller.Drawing
{
    /// <summary>
    /// Options used to generate the splashscreen.
    /// </summary>
    public class SplashscreenOptions
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SplashscreenOptions"/> class.
        /// </summary>
        /// <param name="portraitInputPaths">The portrait input paths.</param>
        /// <param name="landscapeInputPaths">The landscape input paths.</param>
        /// <param name="outputPath">The output path.</param>
        /// <param name="width">Optional. The image width.</param>
        /// <param name="height">Optional. The image height.</param>
        /// <param name="applyFilter">Optional. Apply a darkening filter.</param>
        public SplashscreenOptions(IReadOnlyList<string> portraitInputPaths, IReadOnlyList<string> landscapeInputPaths, string outputPath, int width = 1920, int height = 1080, bool applyFilter = false)
        {
            PortraitInputPaths = portraitInputPaths;
            LandscapeInputPaths = landscapeInputPaths;
            OutputPath = outputPath;
            Width = width;
            Height = height;
            ApplyFilter = applyFilter;
        }

        /// <summary>
        /// Gets or sets the poster input paths.
        /// </summary>
        public IReadOnlyList<string> PortraitInputPaths { get; set; }

        /// <summary>
        /// Gets or sets the landscape input paths.
        /// </summary>
        public IReadOnlyList<string> LandscapeInputPaths { get; set; }

        /// <summary>
        /// Gets or sets the output path.
        /// </summary>
        public string OutputPath { get; set; }

        /// <summary>
        /// Gets or sets the width.
        /// </summary>
        public int Width { get; set; }

        /// <summary>
        /// Gets or sets the height.
        /// </summary>
        public int Height { get; set; }

        /// <summary>
        /// Gets or sets a value indicating whether to apply a darkening filter at the end.
        /// </summary>
        public bool ApplyFilter { get; set; }
    }
}