Table of Contents

Class BokehBlurExtensions

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

Adds bokeh blurring extensions to the Image<TPixel> type.

public static class BokehBlurExtensions
Inheritance
BokehBlurExtensions
Inherited Members

Methods

BokehBlur(IImageProcessingContext)

Applies a bokeh blur to the image.

public static IImageProcessingContext BokehBlur(this IImageProcessingContext source)

Parameters

source IImageProcessingContext

The current image processing context.

Returns

IImageProcessingContext

The IImageProcessingContext.

BokehBlur(IImageProcessingContext, Rectangle)

Applies a bokeh blur to the image.

public static IImageProcessingContext BokehBlur(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.

BokehBlur(IImageProcessingContext, int, int, float)

Applies a bokeh blur to the image.

public static IImageProcessingContext BokehBlur(this IImageProcessingContext source, int radius, int components, float gamma)

Parameters

source IImageProcessingContext

The current image processing context.

radius int

The 'radius' value representing the size of the area to sample.

components int

The 'components' value representing the number of kernels to use to approximate the bokeh effect.

gamma float

The gamma highlight factor to use to emphasize bright spots in the source image

Returns

IImageProcessingContext

The IImageProcessingContext.

BokehBlur(IImageProcessingContext, int, int, float, Rectangle)

Applies a bokeh blur to the image.

public static IImageProcessingContext BokehBlur(this IImageProcessingContext source, int radius, int components, float gamma, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

radius int

The 'radius' value representing the size of the area to sample.

components int

The 'components' value representing the number of kernels to use to approximate the bokeh effect.

gamma float

The gamma highlight factor to use to emphasize bright spots in the source image

rectangle Rectangle

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

Returns

IImageProcessingContext

The IImageProcessingContext.