Class BackgroundColorWebProcessor
Allows setting of the background color.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Web.Processors
Assembly: SixLabors.ImageSharp.Web.dll
Syntax
public class BackgroundColorWebProcessor : IImageWebProcessor
Fields
| Improve this Doc View SourceColor
The command for changing the background color.
Declaration
public const string Color = "bgcolor"
Field Value
| Type | Description |
|---|---|
| String |
Properties
| Improve this Doc View SourceCommands
Gets the collection of recognized querystring commands.
Declaration
public IEnumerable<string> Commands { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<String> |
Methods
| Improve this Doc View SourceProcess(FormattedImage, ILogger, IDictionary<String, String>, CommandParser, CultureInfo)
Processes the image based on the querystring commands.
Declaration
public FormattedImage Process(FormattedImage image, ILogger logger, IDictionary<string, string> commands, CommandParser parser, CultureInfo culture)
Parameters
| Type | Name | Description |
|---|---|---|
| FormattedImage | image | The image to process. |
| ILogger | logger | The type used for performing logging. |
| IDictionary<String, String> | commands | The querystring 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. |