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
sourceIImageProcessingContextThe 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
sourceIImageProcessingContextThe current image processing context.
colorColorThe 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
sourceIImageProcessingContextThe current image processing context.
colorColorThe color to set as the vignette.
radiusXfloatThe the x-radius.
radiusYfloatThe the y-radius.
rectangleRectangleThe 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
sourceIImageProcessingContextThe current image processing context.
optionsGraphicsOptionsThe 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
sourceIImageProcessingContextThe current image processing context.
optionsGraphicsOptionsThe options effecting pixel blending.
colorColorThe 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
sourceIImageProcessingContextThe current image processing context.
optionsGraphicsOptionsThe options effecting pixel blending.
colorColorThe color to set as the vignette.
radiusXfloatThe the x-radius.
radiusYfloatThe the y-radius.
rectangleRectangleThe 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
sourceIImageProcessingContextThe current image processing context.
optionsGraphicsOptionsThe options effecting pixel blending.
rectangleRectangleThe 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
sourceIImageProcessingContextThe current image processing context.
optionsGraphicsOptionsThe options effecting pixel blending.
radiusXfloatThe the x-radius.
radiusYfloatThe 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
sourceIImageProcessingContextThe current image processing context.
rectangleRectangleThe 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
sourceIImageProcessingContextThe current image processing context.
radiusXfloatThe the x-radius.
radiusYfloatThe the y-radius.