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
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.
Properties
BrushSize
Gets the brush size.
public int BrushSize { get; }
Property Value
Levels
Gets the number of intensity levels.
public int Levels { get; }
Property Value
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
configurationConfigurationThe configuration which allows altering default behaviour or extending the library.
sourceImage<TPixel>The source image. Cannot be null.
sourceRectangleRectangleThe Rectangle structure that specifies the portion of the image object to draw.
Returns
- IImageProcessor<TPixel>
Type Parameters
TPixelThe pixel type.