Class DrawingOptionsDefaultsExtensions
Adds extensions that help working with DrawingOptions.
Inherited Members
Namespace: SixLabors.ImageSharp.Drawing.Processing
Assembly: SixLabors.ImageSharp.Drawing.dll
Syntax
public static class DrawingOptionsDefaultsExtensions
Methods
| Edit this page View SourceGetDrawingOptions(IImageProcessingContext)
Gets the default shape processing options against The source image processing context.
Declaration
public static DrawingOptions GetDrawingOptions(this IImageProcessingContext context)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | context | The image processing context to retrieve defaults from. |
Returns
Type | Description |
---|---|
DrawingOptions | The globally configured default options. |
GetDrawingTransform(Configuration)
Gets the default 2D transformation matrix to be used during rasterization when drawing shapes or text.
Declaration
public static Matrix3x2 GetDrawingTransform(this Configuration configuration)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration to retrieve defaults from. |
Returns
Type | Description |
---|---|
Matrix3x2 | The globally configured default matrix. |
GetDrawingTransform(IImageProcessingContext)
Gets the default 2D transformation matrix to be used during rasterization when drawing shapes or text.
Declaration
public static Matrix3x2 GetDrawingTransform(this IImageProcessingContext context)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | context | The image processing context to retrieve defaults from. |
Returns
Type | Description |
---|---|
Matrix3x2 | The matrix. |
SetDrawingTransform(Configuration, Matrix3x2)
Sets the default 2D transformation matrix to be used during rasterization when drawing shapes or text.
Declaration
public static void SetDrawingTransform(this Configuration configuration, Matrix3x2 matrix)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration to store default against. |
Matrix3x2 | matrix | The default matrix to use. |
SetDrawingTransform(IImageProcessingContext, Matrix3x2)
Sets the 2D transformation matrix to be used during rasterization when drawing shapes or text.
Declaration
public static IImageProcessingContext SetDrawingTransform(this IImageProcessingContext context, Matrix3x2 matrix)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | context | The image processing context to store default against. |
Matrix3x2 | matrix | The matrix to use. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The passed in |