From 4820fe80971c83cde97a445e45b9e0b1952b0d90 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 8 Apr 2015 10:38:02 -0400 Subject: added drawing project --- Emby.Drawing/IImageEncoder.cs | 48 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Emby.Drawing/IImageEncoder.cs (limited to 'Emby.Drawing/IImageEncoder.cs') diff --git a/Emby.Drawing/IImageEncoder.cs b/Emby.Drawing/IImageEncoder.cs new file mode 100644 index 000000000..83a59a002 --- /dev/null +++ b/Emby.Drawing/IImageEncoder.cs @@ -0,0 +1,48 @@ +using MediaBrowser.Controller.Drawing; +using MediaBrowser.Model.Drawing; +using System; + +namespace Emby.Drawing +{ + public interface IImageEncoder : IDisposable + { + /// + /// Gets the supported input formats. + /// + /// The supported input formats. + string[] SupportedInputFormats { get; } + /// + /// Gets the supported output formats. + /// + /// The supported output formats. + ImageFormat[] SupportedOutputFormats { get; } + /// + /// Gets the size of the image. + /// + /// The path. + /// ImageSize. + ImageSize GetImageSize(string path); + /// + /// Crops the white space. + /// + /// The input path. + /// The output path. + void CropWhiteSpace(string inputPath, string outputPath); + /// + /// Encodes the image. + /// + /// The input path. + /// The output path. + /// The width. + /// The height. + /// The quality. + /// The options. + void EncodeImage(string inputPath, string outputPath, int width, int height, int quality, ImageProcessingOptions options); + + /// + /// Creates the image collage. + /// + /// The options. + void CreateImageCollage(ImageCollageOptions options); + } +} -- cgit v1.2.3