Class VignetteExtensions
Defines extensions that allow the application of a radial glow to an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class VignetteExtensions
Methods
| Edit this page View SourceVignette(IImageProcessingContext)
Applies a radial vignette effect to an image.
Declaration
public static IImageProcessingContext Vignette(this IImageProcessingContext source)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Vignette(IImageProcessingContext, Color)
Applies a radial vignette effect to an image.
Declaration
public static IImageProcessingContext Vignette(this IImageProcessingContext source, Color color)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
Color | color | The color to set as the vignette. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Vignette(IImageProcessingContext, Color, float, float, Rectangle)
Applies a radial vignette effect to an image.
Declaration
public static IImageProcessingContext Vignette(this IImageProcessingContext source, Color color, float radiusX, float radiusY, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
Color | color | The color to set as the vignette. |
float | radiusX | The the x-radius. |
float | radiusY | The the y-radius. |
Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Vignette(IImageProcessingContext, GraphicsOptions)
Applies a radial vignette effect to an image.
Declaration
public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
GraphicsOptions | options | The options effecting pixel blending. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Vignette(IImageProcessingContext, GraphicsOptions, Color)
Applies a radial vignette effect to an image.
Declaration
public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options, Color color)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
GraphicsOptions | options | The options effecting pixel blending. |
Color | color | The color to set as the vignette. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Vignette(IImageProcessingContext, GraphicsOptions, Color, float, float, Rectangle)
Applies a radial vignette effect to an image.
Declaration
public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options, Color color, float radiusX, float radiusY, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
GraphicsOptions | options | The options effecting pixel blending. |
Color | color | The color to set as the vignette. |
float | radiusX | The the x-radius. |
float | radiusY | The the y-radius. |
Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Vignette(IImageProcessingContext, GraphicsOptions, Rectangle)
Applies a radial vignette effect to an image.
Declaration
public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
GraphicsOptions | options | The options effecting pixel blending. |
Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Vignette(IImageProcessingContext, GraphicsOptions, float, float)
Applies a radial vignette effect to an image.
Declaration
public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options, float radiusX, float radiusY)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
GraphicsOptions | options | The options effecting pixel blending. |
float | radiusX | The the x-radius. |
float | radiusY | The the y-radius. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Vignette(IImageProcessingContext, Rectangle)
Applies a radial vignette effect to an image.
Declaration
public static IImageProcessingContext Vignette(this IImageProcessingContext source, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Vignette(IImageProcessingContext, float, float)
Applies a radial vignette effect to an image.
Declaration
public static IImageProcessingContext Vignette(this IImageProcessingContext source, float radiusX, float radiusY)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
float | radiusX | The the x-radius. |
float | radiusY | The the y-radius. |
Returns
Type | Description |
---|---|
IImageProcessingContext |