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
| Edit this page 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 current image processing context. |
Returns
Type | Description |
---|---|
IImageProcessingContext |
EntropyCrop(IImageProcessingContext, float)
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 current image processing context. |
float | threshold | The threshold for entropic density. |
Returns
Type | Description |
---|---|
IImageProcessingContext |