Class ShapeGraphicOptionsDefaultsExtensions
Adds extensions that allow the processing of images to the 
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class ShapeGraphicOptionsDefaultsExtensionsMethods
| Improve this Doc View SourceGetShapeOptions(Configuration)
Gets the default shape processing options against the image processing context.
Declaration
public static ShapeOptions GetShapeOptions(this Configuration configuration)Parameters
| Type | Name | Description | 
|---|---|---|
| Configuration | configuration | The configuration to retrieve defaults from. | 
Returns
| Type | Description | 
|---|---|
| ShapeOptions | The globaly configued default options. | 
GetShapeOptions(IImageProcessingContext)
Gets the default shape processing options against the image processing context.
Declaration
public static ShapeOptions GetShapeOptions(this IImageProcessingContext context)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | context | The image processing context to retrieve defaults from. | 
Returns
| Type | Description | 
|---|---|
| ShapeOptions | The globaly configued default options. | 
SetShapeOptions(Configuration, ShapeOptions)
Sets the default shape processing options against the configuration.
Declaration
public static void SetShapeOptions(this Configuration configuration, ShapeOptions options)Parameters
| Type | Name | Description | 
|---|---|---|
| Configuration | configuration | The configuration to store default against. | 
| ShapeOptions | options | The default options to use. | 
SetShapeOptions(Configuration, Action<ShapeOptions>)
Sets the default shape processing options against the configuration.
Declaration
public static void SetShapeOptions(this Configuration configuration, Action<ShapeOptions> optionsBuilder)Parameters
| Type | Name | Description | 
|---|---|---|
| Configuration | configuration | The configuration to store default against. | 
| Action<ShapeOptions> | optionsBuilder | The default options to use. | 
SetShapeOptions(IImageProcessingContext, ShapeOptions)
Sets the default shape processing options against the image processing context.
Declaration
public static IImageProcessingContext SetShapeOptions(this IImageProcessingContext context, ShapeOptions options)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | context | The image processing context to store default against. | 
| ShapeOptions | options | The default options to use. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The passed in  | 
SetShapeOptions(IImageProcessingContext, Action<ShapeOptions>)
Sets the default shape processing options against the image processing context.
Declaration
public static IImageProcessingContext SetShapeOptions(this IImageProcessingContext context, Action<ShapeOptions> optionsBuilder)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | context | The image processing context to store default against. | 
| Action<ShapeOptions> | optionsBuilder | The action to update instance of the default options used. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The passed in  |