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
| Improve this Doc 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 image this method extends. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
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 image this method extends. |
Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
OilPaint(IImageProcessingContext, Int32, Int32)
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 image this method extends. |
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. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
OilPaint(IImageProcessingContext, Int32, Int32, 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 image this method extends. |
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. |
Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |