Class OilPaintExtensions
- Namespace
- SixLabors.ImageSharp.Processing
- Assembly
- SixLabors.ImageSharp.dll
Defines oil painting effect extensions applicable on an Image using Mutate/Clone.
public static class OilPaintExtensions
- Inheritance
-
OilPaintExtensions
- Inherited Members
Methods
OilPaint(IImageProcessingContext)
Alters the colors of the image recreating an oil painting effect with levels and brushSize
set to
public static IImageProcessingContext OilPaint(this IImageProcessingContext source)
Parameters
sourceIImageProcessingContextThe current image processing context.
Returns
OilPaint(IImageProcessingContext, Rectangle)
Alters the colors of the image recreating an oil painting effect with levels and brushSize
set to
public static IImageProcessingContext OilPaint(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
OilPaint(IImageProcessingContext, int, int)
Alters the colors of the image recreating an oil painting effect.
public static IImageProcessingContext OilPaint(this IImageProcessingContext source, int levels, int brushSize)
Parameters
sourceIImageProcessingContextThe current image processing context.
levelsintThe number of intensity levels. Higher values result in a broader range of color intensities forming part of the result image.
brushSizeintThe number of neighboring pixels used in calculating each individual pixel value.
Returns
OilPaint(IImageProcessingContext, int, int, Rectangle)
Alters the colors of the image recreating an oil painting effect.
public static IImageProcessingContext OilPaint(this IImageProcessingContext source, int levels, int brushSize, Rectangle rectangle)
Parameters
sourceIImageProcessingContextThe current image processing context.
levelsintThe number of intensity levels. Higher values result in a broader range of color intensities forming part of the result image.
brushSizeintThe number of neighboring pixels used in calculating each individual pixel value.
rectangleRectangleThe Rectangle structure that specifies the portion of the image object to alter.