Class BlackWhiteExtensions
Defines extension methods that allow the application of black and white toning to an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class BlackWhiteExtensions
Methods
| Edit this page View SourceBlackWhite(IImageProcessingContext)
Applies black and white toning to the image.
Declaration
public static IImageProcessingContext BlackWhite(this IImageProcessingContext source)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
BlackWhite(IImageProcessingContext, Rectangle)
Applies black and white toning to the image.
Declaration
public static IImageProcessingContext BlackWhite(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 |