IImageEncoder.cs 1.8 KB

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