Devesprit.ImageProcessor & Devesprit.ImageServer
EntropyCrop

Description:

Crops an image to the area of greatest entropy. This method works best with images containing large areas of a single color or similar colors around the edges.

Method Declaration
Copy Code
public ImageFactory EntropyCrop(byte threshold = 128)

Parameters:

threshold The threshold in bytes to control the entropy detection level.

Assembly:

Devesprit.ImageProcessor

Example
Copy Code
new ImageFactory().Load(@"My-Image-Path").EntropyCrop(50);

Original

 

Result