Class HueExtensions
Defines extensions that allow the alteration of the hue component of an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class HueExtensions
Methods
| Improve this Doc View SourceHue(IImageProcessingContext, Single)
Alters the hue component of the image.
Declaration
public static IImageProcessingContext Hue(this IImageProcessingContext source, float degrees)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Single | degrees | The rotation angle in degrees to adjust the hue. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Hue(IImageProcessingContext, Single, Rectangle)
Alters the hue component of the image.
Declaration
public static IImageProcessingContext Hue(this IImageProcessingContext source, float degrees, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Single | degrees | The rotation angle in degrees to adjust the hue. |
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. |