Class OilPaintExtensions
Defines oil painting effect extensions applicable on an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class OilPaintExtensions
Methods
| Edit this page View SourceOilPaint(IImageProcessingContext)
Alters the colors of the image recreating an oil painting effect with levels and brushSize
set to
Declaration
public static IImageProcessingContext OilPaint(this IImageProcessingContext source)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The current image processing context. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |
OilPaint(IImageProcessingContext, Rectangle)
Alters the colors of the image recreating an oil painting effect with levels and brushSize
set to
Declaration
public static IImageProcessingContext OilPaint(this IImageProcessingContext source, Rectangle rectangle)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The current image processing context. |
| Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |
OilPaint(IImageProcessingContext, int, int)
Alters the colors of the image recreating an oil painting effect.
Declaration
public static IImageProcessingContext OilPaint(this IImageProcessingContext source, int levels, int brushSize)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The current image processing context. |
| int | levels | The number of intensity levels. Higher values result in a broader range of color intensities forming part of the result image. |
| int | brushSize | The number of neighboring pixels used in calculating each individual pixel value. |
Returns
| Type | Description |
|---|---|
| IImageProcessingContext |
OilPaint(IImageProcessingContext, int, int, Rectangle)
Alters the colors of the image recreating an oil painting effect.
Declaration
public static IImageProcessingContext OilPaint(this IImageProcessingContext source, int levels, int brushSize, Rectangle rectangle)
Parameters
| Type | Name | Description |
|---|---|---|
| IImageProcessingContext | source | The current image processing context. |
| int | levels | The number of intensity levels. Higher values result in a broader range of color intensities forming part of the result image. |
| int | brushSize | 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
| Type | Description |
|---|---|
| IImageProcessingContext |