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
IImageProcessingContextThe current image processing context.
Returns
BokehBlur(IImageProcessingContext, Rectangle)
Applies a bokeh blur to the image.
public static IImageProcessingContext BokehBlur(this IImageProcessingContext source, Rectangle rectangle)
Parameters
source
IImageProcessingContextThe current image processing context.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.
Returns
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
IImageProcessingContextThe current image processing context.
radius
intThe 'radius' value representing the size of the area to sample.
components
intThe 'components' value representing the number of kernels to use to approximate the bokeh effect.
gamma
floatThe gamma highlight factor to use to emphasize bright spots in the source image
Returns
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
IImageProcessingContextThe current image processing context.
radius
intThe 'radius' value representing the size of the area to sample.
components
intThe 'components' value representing the number of kernels to use to approximate the bokeh effect.
gamma
floatThe gamma highlight factor to use to emphasize bright spots in the source image
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.