Class OilPaintingProcessor
Defines an oil painting effect.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp.Processing.Processors.Effects
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class OilPaintingProcessor : IImageProcessor
Constructors
| Improve this Doc View SourceOilPaintingProcessor(Int32, Int32)
Initializes a new instance of the OilPaintingProcessor class.
Declaration
public OilPaintingProcessor(int levels, int brushSize)
Parameters
Type | Name | Description |
---|---|---|
Int32 | levels | The number of intensity levels. Higher values result in a broader range of color intensities forming part of the result image. |
Int32 | brushSize | The number of neighboring pixels used in calculating each individual pixel value. |
Properties
| Improve this Doc View SourceBrushSize
Gets the brush size.
Declaration
public int BrushSize { get; }
Property Value
Type | Description |
---|---|
Int32 |
Levels
Gets the number of intensity levels.
Declaration
public int Levels { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
| Improve this Doc View SourceCreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
Declaration
public IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle)
where TPixel : struct, IPixel<TPixel>
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | The configuration which allows altering default behaviour or extending the library. |
Image<TPixel> | source | The source image. Cannot be null. |
Rectangle | sourceRectangle | The Rectangle structure that specifies the portion of the image object to draw. |
Returns
Type | Description |
---|---|
IImageProcessor<TPixel> |
Type Parameters
Name | Description |
---|---|
TPixel | The pixel type. |