Class GraphicOptionsDefaultsExtensions
Adds extensions that allow the processing of images to the Image<TPixel> type.
Inherited Members
Namespace: SixLabors.ImageSharp
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class GraphicOptionsDefaultsExtensions
Methods
| Improve this Doc View SourceGetGraphicsOptions(Configuration)
Gets the default options against the image processing context.
Declaration
public static GraphicsOptions GetGraphicsOptions(this Configuration configuration)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration to retrieve defaults from. |
Returns
Type | Description |
---|---|
GraphicsOptions | The globaly configued default options. |
GetGraphicsOptions(IImageProcessingContext)
Gets the default options against the image processing context.
Declaration
public static GraphicsOptions GetGraphicsOptions(this IImageProcessingContext context)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | context | The image processing context to retrieve defaults from. |
Returns
Type | Description |
---|---|
GraphicsOptions | The globaly configued default options. |
SetGraphicsOptions(Configuration, GraphicsOptions)
Sets the default options against the configuration.
Declaration
public static void SetGraphicsOptions(this Configuration configuration, GraphicsOptions options)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration to store default against. |
GraphicsOptions | options | The default options to use. |
SetGraphicsOptions(Configuration, Action<GraphicsOptions>)
Sets the default options against the configuration.
Declaration
public static void SetGraphicsOptions(this Configuration configuration, Action<GraphicsOptions> optionsBuilder)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration to store default against. |
Action<GraphicsOptions> | optionsBuilder | The default options to use. |
SetGraphicsOptions(IImageProcessingContext, GraphicsOptions)
Sets the default options against the image processing context.
Declaration
public static IImageProcessingContext SetGraphicsOptions(this IImageProcessingContext context, GraphicsOptions options)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | context | The image processing context to store default against. |
GraphicsOptions | options | The default options to use. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The passed in |
SetGraphicsOptions(IImageProcessingContext, Action<GraphicsOptions>)
Sets the default options against the image processing context.
Declaration
public static IImageProcessingContext SetGraphicsOptions(this IImageProcessingContext context, Action<GraphicsOptions> optionsBuilder)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | context | The image processing context to store default against. |
Action<GraphicsOptions> | optionsBuilder | The action to update instance of the default options used. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The passed in |