parent
9e0958d822
commit
360fd70fc7
@ -0,0 +1,12 @@
|
||||
namespace MediaBrowser.Controller.Drawing;
|
||||
|
||||
/// <summary>
|
||||
/// Which generated image type the <see cref="IImageGenerator"/> supports.
|
||||
/// </summary>
|
||||
public enum GeneratedImageType
|
||||
{
|
||||
/// <summary>
|
||||
/// The splashscreen.
|
||||
/// </summary>
|
||||
Splashscreen = 0
|
||||
}
|
@ -1,13 +0,0 @@
|
||||
namespace MediaBrowser.Controller.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Which generated images an <see cref="IImageGenerator"/> supports.
|
||||
/// </summary>
|
||||
public enum GeneratedImages
|
||||
{
|
||||
/// <summary>
|
||||
/// The splashscreen.
|
||||
/// </summary>
|
||||
Splashscreen
|
||||
}
|
||||
}
|
@ -1,20 +1,22 @@
|
||||
namespace MediaBrowser.Controller.Drawing
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MediaBrowser.Controller.Drawing;
|
||||
|
||||
/// <summary>
|
||||
/// Interface for an image generator.
|
||||
/// </summary>
|
||||
public interface IImageGenerator
|
||||
{
|
||||
/// <summary>
|
||||
/// Interface for an image generator.
|
||||
/// </summary>
|
||||
public interface IImageGenerator
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the supported generated images of the image generator.
|
||||
/// </summary>
|
||||
/// <returns>The supported images.</returns>
|
||||
GeneratedImages[] GetSupportedImages();
|
||||
/// <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 GenerateSplashscreen(string outputPath);
|
||||
}
|
||||
void Generate(GeneratedImageType imageTypeType, string outputPath);
|
||||
}
|
||||
|
Loading…
Reference in new issue