IImageEncoder.cs 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using MediaBrowser.Model.Drawing;
  3. namespace MediaBrowser.Controller.Drawing
  4. {
  5. public interface IImageEncoder
  6. {
  7. /// <summary>
  8. /// Gets the supported input formats.
  9. /// </summary>
  10. /// <value>The supported input formats.</value>
  11. string[] SupportedInputFormats { get; }
  12. /// <summary>
  13. /// Gets the supported output formats.
  14. /// </summary>
  15. /// <value>The supported output formats.</value>
  16. ImageFormat[] SupportedOutputFormats { get; }
  17. /// <summary>
  18. /// Encodes the image.
  19. /// </summary>
  20. string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, int quality, ImageProcessingOptions options, ImageFormat outputFormat);
  21. /// <summary>
  22. /// Creates the image collage.
  23. /// </summary>
  24. /// <param name="options">The options.</param>
  25. void CreateImageCollage(ImageCollageOptions options);
  26. /// <summary>
  27. /// Gets the name.
  28. /// </summary>
  29. /// <value>The name.</value>
  30. string Name { get; }
  31. /// <summary>
  32. /// Gets a value indicating whether [supports image collage creation].
  33. /// </summary>
  34. /// <value><c>true</c> if [supports image collage creation]; otherwise, <c>false</c>.</value>
  35. bool SupportsImageCollageCreation { get; }
  36. /// <summary>
  37. /// Gets a value indicating whether [supports image encoding].
  38. /// </summary>
  39. /// <value><c>true</c> if [supports image encoding]; otherwise, <c>false</c>.</value>
  40. bool SupportsImageEncoding { get; }
  41. ImageSize GetImageSize(string path);
  42. }
  43. }