Class ColorBlindnessExtensions
Defines extensions that simulate the effects of various color blindness disorders on an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class ColorBlindnessExtensionsMethods
| Improve this Doc View SourceColorBlindness(IImageProcessingContext, ColorBlindnessMode)
Applies the given colorblindness simulator to the image.
Declaration
public static IImageProcessingContext ColorBlindness(this IImageProcessingContext source, ColorBlindnessMode colorBlindness)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image this method extends. | 
| ColorBlindnessMode | colorBlindness | The type of color blindness simulator to apply. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. | 
ColorBlindness(IImageProcessingContext, ColorBlindnessMode, Rectangle)
Applies the given colorblindness simulator to the image.
Declaration
public static IImageProcessingContext ColorBlindness(this IImageProcessingContext source, ColorBlindnessMode colorBlindnessMode, Rectangle rectangle)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image this method extends. | 
| ColorBlindnessMode | colorBlindnessMode | The type of color blindness simulator to apply. | 
| 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. |