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
sourceIImageProcessingContextThe 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
sourceIImageProcessingContextThe current image processing context.
rectangleRectangleThe 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
sourceIImageProcessingContextThe current image processing context.
radiusintThe 'radius' value representing the size of the area to sample.
componentsintThe 'components' value representing the number of kernels to use to approximate the bokeh effect.
gammafloatThe 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
sourceIImageProcessingContextThe current image processing context.
radiusintThe 'radius' value representing the size of the area to sample.
componentsintThe 'components' value representing the number of kernels to use to approximate the bokeh effect.
gammafloatThe gamma highlight factor to use to emphasize bright spots in the source image
rectangleRectangleThe Rectangle structure that specifies the portion of the image object to alter.