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 BokehBlurExtensionsMethods
| Improve this Doc 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 image this method extends. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. | 
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 image this method extends. | 
| Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. | 
BokehBlur(IImageProcessingContext, Int32, Int32, Single)
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 image this method extends. | 
| Int32 | radius | The 'radius' value representing the size of the area to sample. | 
| Int32 | components | The 'components' value representing the number of kernels to use to approximate the bokeh effect. | 
| Single | gamma | The gamma highlight factor to use to emphasize bright spots in the source image | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. | 
BokehBlur(IImageProcessingContext, Int32, Int32, Single, 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 image this method extends. | 
| Int32 | radius | The 'radius' value representing the size of the area to sample. | 
| Int32 | components | The 'components' value representing the number of kernels to use to approximate the bokeh effect. | 
| Single | 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 | The IImageProcessingContext to allow chaining of operations. |