Table of Contents

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 IImageProcessingContext

The current image processing context.

Returns

IImageProcessingContext

The IImageProcessingContext.

Vignette(IImageProcessingContext, Color)

Applies a radial vignette effect to an image.

public static IImageProcessingContext Vignette(this IImageProcessingContext source, Color color)

Parameters

source IImageProcessingContext

The current image processing context.

color Color

The color to set as the vignette.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

color Color

The color to set as the vignette.

radiusX float

The the x-radius.

radiusY float

The the y-radius.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.

Vignette(IImageProcessingContext, GraphicsOptions)

Applies a radial vignette effect to an image.

public static IImageProcessingContext Vignette(this IImageProcessingContext source, GraphicsOptions options)

Parameters

source IImageProcessingContext

The current image processing context.

options GraphicsOptions

The options effecting pixel blending.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

options GraphicsOptions

The options effecting pixel blending.

color Color

The color to set as the vignette.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

options GraphicsOptions

The options effecting pixel blending.

color Color

The color to set as the vignette.

radiusX float

The the x-radius.

radiusY float

The the y-radius.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

options GraphicsOptions

The options effecting pixel blending.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

options GraphicsOptions

The options effecting pixel blending.

radiusX float

The the x-radius.

radiusY float

The the y-radius.

Returns

IImageProcessingContext

The IImageProcessingContext.

Vignette(IImageProcessingContext, Rectangle)

Applies a radial vignette effect to an image.

public static IImageProcessingContext Vignette(this IImageProcessingContext source, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

radiusX float

The the x-radius.

radiusY float

The the y-radius.

Returns

IImageProcessingContext

The IImageProcessingContext.