Class EntropyCropExtensions
Defines extensions that allow the application of entropy cropping operations on an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class EntropyCropExtensions
Methods
| Improve this Doc View SourceEntropyCrop(IImageProcessingContext)
Crops an image to the area of greatest entropy using a threshold for entropic density of
Declaration
public static IImageProcessingContext EntropyCrop(this IImageProcessingContext source)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image to crop. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
EntropyCrop(IImageProcessingContext, Single)
Crops an image to the area of greatest entropy.
Declaration
public static IImageProcessingContext EntropyCrop(this IImageProcessingContext source, float threshold)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image to crop. |
Single | threshold | The threshold for entropic density. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |