Class BokehBlurExtensions
Adds bokeh blurring extensions to the Image<TPixel> type.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class BokehBlurExtensions
Methods
| Edit this page View SourceBokehBlur(IImageProcessingContext)
Applies a bokeh blur to the image.
Declaration
public static IImageProcessingContext BokehBlur(this IImageProcessingContext source)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
BokehBlur(IImageProcessingContext, Rectangle)
Applies a bokeh blur to the image.
Declaration
public static IImageProcessingContext BokehBlur(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 |
BokehBlur(IImageProcessingContext, int, int, float)
Applies a bokeh blur to the image.
Declaration
public static IImageProcessingContext BokehBlur(this IImageProcessingContext source, int radius, int components, float gamma)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
int | radius | The 'radius' value representing the size of the area to sample. |
int | components | The 'components' value representing the number of kernels to use to approximate the bokeh effect. |
float | gamma | The gamma highlight factor to use to emphasize bright spots in the source image |
Returns
Type | Description |
---|---|
IImageProcessingContext |
BokehBlur(IImageProcessingContext, int, int, float, Rectangle)
Applies a bokeh blur to the image.
Declaration
public static IImageProcessingContext BokehBlur(this IImageProcessingContext source, int radius, int components, float gamma, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
int | radius | The 'radius' value representing the size of the area to sample. |
int | components | The 'components' value representing the number of kernels to use to approximate the bokeh effect. |
float | gamma | 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
Type | Description |
---|---|
IImageProcessingContext |