Class VignetteExtensions
- Namespace
- SixLabors.ImageSharp.Processing
- Assembly
- SixLabors.ImageSharp.dll
Defines extensions that allow the application of a radial glow to an Image using Mutate/Clone.
public static class VignetteExtensions
- Inheritance
-
VignetteExtensions
- Inherited Members
Methods
Vignette(IImageProcessingContext)
Applies a radial vignette effect to an image.
public static IImageProcessingContext Vignette(this IImageProcessingContext source)
Parameters
source
IImageProcessingContextThe current image processing context.
Returns
Vignette(IImageProcessingContext, Color)
Applies a radial vignette effect to an image.
public static IImageProcessingContext Vignette(this IImageProcessingContext source, Color color)
Parameters
source
IImageProcessingContextThe current image processing context.
color
ColorThe color to set as the vignette.
Returns
Vignette(IImageProcessingContext, Color, float, float, Rectangle)
Applies a radial vignette effect to an image.
public static IImageProcessingContext Vignette(this IImageProcessingContext source, Color color, float radiusX, float radiusY, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
color
ColorThe color to set as the vignette.
radiusX
floatThe the x-radius.
radiusY
floatThe the y-radius.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.
Returns
Vignette(IImageProcessingContext, GraphicsOptions)
Applies a radial vignette effect to an image.
public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options)
Parameters
source
IImageProcessingContextThe current image processing context.
options
GraphicsOptionsThe options effecting pixel blending.
Returns
Vignette(IImageProcessingContext, GraphicsOptions, Color)
Applies a radial vignette effect to an image.
public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options, Color color)
Parameters
source
IImageProcessingContextThe current image processing context.
options
GraphicsOptionsThe options effecting pixel blending.
color
ColorThe color to set as the vignette.
Returns
Vignette(IImageProcessingContext, GraphicsOptions, Color, float, float, Rectangle)
Applies a radial vignette effect to an image.
public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options, Color color, float radiusX, float radiusY, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
options
GraphicsOptionsThe options effecting pixel blending.
color
ColorThe color to set as the vignette.
radiusX
floatThe the x-radius.
radiusY
floatThe the y-radius.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.
Returns
Vignette(IImageProcessingContext, GraphicsOptions, Rectangle)
Applies a radial vignette effect to an image.
public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
options
GraphicsOptionsThe options effecting pixel blending.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.
Returns
Vignette(IImageProcessingContext, GraphicsOptions, float, float)
Applies a radial vignette effect to an image.
public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options, float radiusX, float radiusY)
Parameters
source
IImageProcessingContextThe current image processing context.
options
GraphicsOptionsThe options effecting pixel blending.
radiusX
floatThe the x-radius.
radiusY
floatThe the y-radius.
Returns
Vignette(IImageProcessingContext, Rectangle)
Applies a radial vignette effect to an image.
public static IImageProcessingContext Vignette(this IImageProcessingContext source, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.
Returns
Vignette(IImageProcessingContext, float, float)
Applies a radial vignette effect to an image.
public static IImageProcessingContext Vignette(this IImageProcessingContext source, float radiusX, float radiusY)
Parameters
source
IImageProcessingContextThe current image processing context.
radiusX
floatThe the x-radius.
radiusY
floatThe the y-radius.