Table of Contents

Class EntropyCropExtensions

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

Defines extensions that allow the application of entropy cropping operations on an Image using Mutate/Clone.

public static class EntropyCropExtensions
Inheritance
EntropyCropExtensions
Inherited Members

Methods

EntropyCrop(IImageProcessingContext)

Crops an image to the area of greatest entropy using a threshold for entropic density of .5F.

public static IImageProcessingContext EntropyCrop(this IImageProcessingContext source)

Parameters

source IImageProcessingContext

The current image processing context.

Returns

IImageProcessingContext

The IImageProcessingContext.

EntropyCrop(IImageProcessingContext, float)

Crops an image to the area of greatest entropy.

public static IImageProcessingContext EntropyCrop(this IImageProcessingContext source, float threshold)

Parameters

source IImageProcessingContext

The current image processing context.

threshold float

The threshold for entropic density.

Returns

IImageProcessingContext

The IImageProcessingContext.