Interface IImageWebProcessor
Specifies the contract for processing images using a querystring URI API.
Namespace: SixLabors.ImageSharp.Web.Processors
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public interface IImageWebProcessor
Properties
| Edit this page View SourceCommands
Gets the collection of recognized command keys.
Declaration
IEnumerable<string> Commands { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<string> |
Methods
| Edit this page View SourceProcess(FormattedImage, ILogger, CommandCollection, CommandParser, CultureInfo)
Processes the image based on the given commands.
Declaration
FormattedImage Process(FormattedImage image, ILogger logger, CommandCollection commands, CommandParser parser, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| FormattedImage | image | The image to process. |
| ILogger | logger | The type used for performing logging. |
| CommandCollection | commands | The ordered collection containing the processing commands. |
| CommandParser | parser | The command parser use for parting commands. |
| CultureInfo | culture | The CultureInfo to use as the current parsing culture. |
Returns
| Type | Description |
|---|---|
| FormattedImage | The FormattedImage. |
RequiresTrueColorPixelFormat(CommandCollection, CommandParser, CultureInfo)
Returns a value indicating whether the image to be processed should be decoded using a 32 bit True Color pixel format - 8 bits per color component plus an 8 bit alpha channel https://en.wikipedia.org/wiki/Color_depth#True_color_(24-bit).
This method is used to determine whether optimizations can be enabled to reduce memory consumption during processing.
Declaration
bool RequiresTrueColorPixelFormat(CommandCollection commands, CommandParser parser, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandCollection | commands | The ordered collection containing the processing commands. |
| CommandParser | parser | The command parser use for parting commands. |
| CultureInfo | culture | The CultureInfo to use as the current parsing culture. |
Returns
| Type | Description |
|---|---|
| bool | The bool indicating whether a 32 bit True Color pixel format is required. |