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
| Improve this Doc 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 image this method extends. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
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 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. |