Interface IImageProcessor
Interface IImageProcessor
Assembly: MediaBrowser.Controller.dll
public interface IImageProcessor
Properties
Declaration
IImageEncoder[] ImageEncoders { get; }
Property Value
Gets the image enhancers.
Declaration
IImageEnhancer[] ImageEnhancers { get; }
Property Value
Gets the supported input formats.
Declaration
string[] SupportedFileExtensions { get; }
Property Value
| Type |
Description |
| System.String[] |
The supported input formats.
|
Gets a value indicating whether [supports image collage creation].
Declaration
bool SupportsImageCollageCreation { get; }
Property Value
| Type |
Description |
| System.Boolean |
true if [supports image collage creation]; otherwise, false.
|
Methods
Declaration
void AddParts(IEnumerable<IImageEnhancer> enhancers)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.IEnumerable<IImageEnhancer> |
enhancers |
The enhancers.
|
Creates the image collage.
Declaration
Task CreateImageCollage(ImageCollageOptions options, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| ImageCollageOptions |
options |
The options.
|
| System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Declaration
bool FileSupportsTransparency(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
| Type |
Description |
| System.Boolean |
|
Declaration
Task<string> GetEnhancedImage(BaseItem item, ImageType imageType, int imageIndex, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| BaseItem |
item |
The item.
|
| ImageType |
imageType |
Type of the image.
|
| System.Int32 |
imageIndex |
Index of the image.
|
| System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.String> |
Task{System.String}.
|
Gets the image cache tag.
Declaration
string GetImageCacheTag(BaseItem item, ItemImageInfo image)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
string GetImageCacheTag(ItemImageInfo image)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
string GetImageCacheTag(PersonInfo item, ItemImageInfo image)
Parameters
Returns
| Type |
Description |
| System.String |
|
Declaration
string GetImageCacheTag(long itemId, ChapterInfo chapter)
Parameters
| Type |
Name |
Description |
| System.Int64 |
itemId |
|
| ChapterInfo |
chapter |
|
Returns
| Type |
Description |
| System.String |
|
Declaration
ImageData GetImageData(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
Gets the size of the image.
Declaration
(ImageSize, ImageOrientation? ) GetImageSize(BaseItem item, ItemImageInfo info)
Parameters
Returns
Declaration
ImageSize GetImageSize(string path)
Parameters
| Type |
Name |
Description |
| System.String |
path |
|
Returns
Gets the supported enhancers.
Declaration
IImageEnhancer[] GetSupportedEnhancers(BaseItem item, ImageType imageType)
Parameters
Returns
Declaration
string GetSupportedImage(ItemImageInfo originalImage, IImageEncoder imageEncoder)
Parameters
Returns
| Type |
Description |
| System.String |
|
Gets the supported image output formats.
Declaration
ImageFormat[] GetSupportedImageOutputFormats()
Returns
Declaration
void OnImageSizeObtained(ImageProcessingOptions options, ImageSize size, ImageOrientation? orientation)
Parameters
Declaration
Task ProcessImage(ImageProcessingOptions options, Stream toStream, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| ImageProcessingOptions |
options |
|
| System.IO.Stream |
toStream |
|
| System.Threading.CancellationToken |
cancellationToken |
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
Declaration
Task<Tuple<string, string, DateTimeOffset>> ProcessImage(ImageProcessingOptions options, CancellationToken cancellationToken)
Parameters
| Type |
Name |
Description |
| ImageProcessingOptions |
options |
The options.
|
| System.Threading.CancellationToken |
cancellationToken |
The cancellation token.
|
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Tuple<System.String, System.String, System.DateTimeOffset>> |
Task.
|
Declaration
void SetImageEncoders(List<IImageEncoder> imageEncoders)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.List<IImageEncoder> |
imageEncoders |
|
Extension Methods