diff options
| author | Cody Robibero <cody@robibe.ro> | 2022-01-10 08:25:46 -0700 |
|---|---|---|
| committer | Cody Robibero <cody@robibe.ro> | 2022-01-10 08:26:30 -0700 |
| commit | ecb73168b34e3d58dff186b6d90fb4bdd192e24a (patch) | |
| tree | a973f42d5e77239077e967eef28105a30ada3fe3 /MediaBrowser.Controller/Drawing | |
| parent | 360fd70fc74325008b031c9a1155b9b76724866d (diff) | |
Suggestions from review
Diffstat (limited to 'MediaBrowser.Controller/Drawing')
| -rw-r--r-- | MediaBrowser.Controller/Drawing/IImageEncoder.cs | 7 | ||||
| -rw-r--r-- | MediaBrowser.Controller/Drawing/IImageGenerator.cs | 22 |
2 files changed, 7 insertions, 22 deletions
diff --git a/MediaBrowser.Controller/Drawing/IImageEncoder.cs b/MediaBrowser.Controller/Drawing/IImageEncoder.cs index 4e67cfee4..e5c8ebfaf 100644 --- a/MediaBrowser.Controller/Drawing/IImageEncoder.cs +++ b/MediaBrowser.Controller/Drawing/IImageEncoder.cs @@ -74,5 +74,12 @@ namespace MediaBrowser.Controller.Drawing /// <param name="options">The options to use when creating the collage.</param> /// <param name="libraryName">Optional. </param> void CreateImageCollage(ImageCollageOptions options, string? libraryName); + + /// <summary> + /// Creates a new splashscreen image. + /// </summary> + /// <param name="posters">The list of poster paths.</param> + /// <param name="backdrops">The list of backdrop paths.</param> + void CreateSplashscreen(IReadOnlyList<string> posters, IReadOnlyList<string> backdrops); } } diff --git a/MediaBrowser.Controller/Drawing/IImageGenerator.cs b/MediaBrowser.Controller/Drawing/IImageGenerator.cs deleted file mode 100644 index 773db02cb..000000000 --- a/MediaBrowser.Controller/Drawing/IImageGenerator.cs +++ /dev/null @@ -1,22 +0,0 @@ -using System.Collections.Generic; - -namespace MediaBrowser.Controller.Drawing; - -/// <summary> -/// Interface for an image generator. -/// </summary> -public interface IImageGenerator -{ - /// <summary> - /// Gets the supported generated images of the image generator. - /// </summary> - /// <returns>The supported generated image types.</returns> - IReadOnlyList<GeneratedImageType> GetSupportedImages(); - - /// <summary> - /// Generates a splashscreen. - /// </summary> - /// <param name="imageTypeType">The image to generate.</param> - /// <param name="outputPath">The path where the splashscreen should be saved.</param> - void Generate(GeneratedImageType imageTypeType, string outputPath); -} |
