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