Table of Contents

Class OilPaintingProcessor

Namespace
SixLabors.ImageSharp.Processing.Processors.Effects
Assembly
SixLabors.ImageSharp.dll

Defines an oil painting effect.

public sealed class OilPaintingProcessor : IImageProcessor
Inheritance
OilPaintingProcessor
Implements
Inherited Members

Constructors

OilPaintingProcessor(int, int)

Initializes a new instance of the OilPaintingProcessor class.

public OilPaintingProcessor(int levels, int brushSize)

Parameters

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.

Properties

BrushSize

Gets the brush size.

public int BrushSize { get; }

Property Value

int

Levels

Gets the number of intensity levels.

public int Levels { get; }

Property Value

int

Methods

CreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)

Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.

public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>

Parameters

configuration Configuration

The configuration which allows altering default behaviour or extending the library.

source Image<TPixel>

The source image. Cannot be null.

sourceRectangle Rectangle

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

Returns

IImageProcessor<TPixel>

The IImageProcessor<TPixel>

Type Parameters

TPixel

The pixel type.