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
source
IImageProcessingContextThe 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
source
IImageProcessingContextThe current image processing context.
rectangle
RectangleThe 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
source
IImageProcessingContextThe current image processing context.
levels
intThe number of intensity levels. Higher values result in a broader range of color intensities forming part of the result image.
brushSize
intThe 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
source
IImageProcessingContextThe current image processing context.
levels
intThe number of intensity levels. Higher values result in a broader range of color intensities forming part of the result image.
brushSize
intThe number of neighboring pixels used in calculating each individual pixel value.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.