Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.
This documentation is for the old version. Go to the latest Graphics Mill docs

ColorAdjustmentProvider.AutoLevels Method (Double)

Automatically applies levels adjustment using a provided threshold level.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)


Visual Basic
Public Sub AutoLevels ( _
	threshold As Double _
public void AutoLevels(
	double threshold



Type: System.Double

Threshold level of the automatic level correction algorithm (sensitivity).

The threshold value is used to define a percent of pixels on edges of the tonal range to discard. Threshold = 1 is 100% of pixels. To get more or less realistic result, use a value less than 1% (0.01). For example:

  • If you want to get a result similar to Photoshop® 7, use 0.5% (0.005).
  • If you want a result similar to Photoshop CS or later, use 0.1% (0.001).


You can also use Levels class to apply this correction (with Auto property set to true).

See Also