Class TextOptionsDefaultsExtensions
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 TextOptionsDefaultsExtensions
Methods
| Improve this Doc View SourceGetTextOptions(Configuration)
Gets the default shape processing options against the image processing context.
Declaration
public static TextOptions GetTextOptions(this Configuration configuration)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration to retrieve defaults from. |
Returns
Type | Description |
---|---|
TextOptions | The globaly configued default options. |
GetTextOptions(IImageProcessingContext)
Gets the default shape processing options against the image processing context.
Declaration
public static TextOptions GetTextOptions(this IImageProcessingContext context)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | context | The image processing context to retrieve defaults from. |
Returns
Type | Description |
---|---|
TextOptions | The globaly configued default options. |
SetTextOptions(Configuration, TextOptions)
Sets the default shape processing options against the configuration.
Declaration
public static void SetTextOptions(this Configuration configuration, TextOptions options)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration to store default against. |
TextOptions | options | The default options to use. |
SetTextOptions(Configuration, Action<TextOptions>)
Sets the default shape processing options against the configuration.
Declaration
public static void SetTextOptions(this Configuration configuration, Action<TextOptions> optionsBuilder)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration to store default against. |
Action<TextOptions> | optionsBuilder | The default options to use. |
SetTextOptions(IImageProcessingContext, TextOptions)
Sets the default shape processing options against the image processing context.
Declaration
public static IImageProcessingContext SetTextOptions(this IImageProcessingContext context, TextOptions options)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | context | The image processing context to store default against. |
TextOptions | options | The default options to use. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The passed in |
SetTextOptions(IImageProcessingContext, Action<TextOptions>)
Sets the default shape processing options against the image processing context.
Declaration
public static IImageProcessingContext SetTextOptions(this IImageProcessingContext context, Action<TextOptions> optionsBuilder)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | context | The image processing context to store default against. |
Action<TextOptions> | optionsBuilder | The action to update instance of the default options used. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The passed in |