2016-11-11 10:33:10 -07:00
|
|
|
|
using System;
|
2015-04-08 07:38:02 -07:00
|
|
|
|
using MediaBrowser.Model.Drawing;
|
|
|
|
|
|
2016-11-11 10:33:10 -07:00
|
|
|
|
namespace MediaBrowser.Controller.Drawing
|
2015-04-08 07:38:02 -07:00
|
|
|
|
{
|
|
|
|
|
public interface IImageEncoder : IDisposable
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the supported input formats.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The supported input formats.</value>
|
|
|
|
|
string[] SupportedInputFormats { get; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the supported output formats.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The supported output formats.</value>
|
|
|
|
|
ImageFormat[] SupportedOutputFormats { get; }
|
2017-05-14 19:27:58 -07:00
|
|
|
|
|
2015-04-08 07:38:02 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Encodes the image.
|
|
|
|
|
/// </summary>
|
2017-05-17 11:18:18 -07:00
|
|
|
|
string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, int quality, ImageProcessingOptions options, ImageFormat outputFormat);
|
2015-04-08 07:38:02 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Creates the image collage.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="options">The options.</param>
|
|
|
|
|
void CreateImageCollage(ImageCollageOptions options);
|
2015-04-08 22:20:23 -07:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the name.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The name.</value>
|
|
|
|
|
string Name { get; }
|
2015-10-25 22:29:32 -07:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a value indicating whether [supports image collage creation].
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if [supports image collage creation]; otherwise, <c>false</c>.</value>
|
|
|
|
|
bool SupportsImageCollageCreation { get; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets a value indicating whether [supports image encoding].
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value><c>true</c> if [supports image encoding]; otherwise, <c>false</c>.</value>
|
|
|
|
|
bool SupportsImageEncoding { get; }
|
2017-05-11 21:57:09 -07:00
|
|
|
|
|
|
|
|
|
ImageSize GetImageSize(string path);
|
2015-04-08 07:38:02 -07:00
|
|
|
|
}
|
|
|
|
|
}
|