Table of Contents

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 10 and 15 respectively.

public static IImageProcessingContext OilPaint(this IImageProcessingContext source)

Parameters

source IImageProcessingContext

The current image processing context.

Returns

IImageProcessingContext

The IImageProcessingContext.

OilPaint(IImageProcessingContext, Rectangle)

Alters the colors of the image recreating an oil painting effect with levels and brushSize set to 10 and 15 respectively.

public static IImageProcessingContext OilPaint(this IImageProcessingContext source, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

levels int

The number of intensity levels. Higher values result in a broader range of color intensities forming part of the result image.

brushSize int

The number of neighboring pixels used in calculating each individual pixel value.

Returns

IImageProcessingContext

The IImageProcessingContext.

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 IImageProcessingContext

The current image processing context.

levels int

The number of intensity levels. Higher values result in a broader range of color intensities forming part of the result image.

brushSize int

The number of neighboring pixels used in calculating each individual pixel value.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.