Applies tone levels correction (the same as Adobe® Photoshop® Levels effect).
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Sub Levels ( _ minimumLevel As Single, _ maximumLevel As Single, _ shadows As Single, _ midtones As Single, _ highlights As Single, _ histogramMode As HistogramMode _ )
public void Levels( float minimumLevel, float maximumLevel, float shadows, float midtones, float highlights, HistogramMode histogramMode )
Type: System.Single
Value in range [0, 1] that specifies minimum output level value.Type: System.Single
Value in range [0, 1] that specifies maximum output level value.Type: System.Single
Value in range [0, 1] that specifies minimum input shadows level.Type: System.Single
Value in range [0.1, 10] that specifies input midtones level.Type: System.Single
Value in range [0, 1] that specifies maximum input highlights level.Type: Aurigma.GraphicsMill.HistogramMode
HistogramMode value that specifies how to build histogram.All parameters that specify tone range (minimumLevel, maximumLevel, shadows, and histogram) are normalized to 1. Depending on pixel format they are scaled to 255 or 65355 inside of the method.
bitmap.ColorAdjustment.Levels(0.03F, 0.9F, 0.05F, 1.5F, 0.7F, Aurigma.GraphicsMill.HistogramMode.Sum)
bitmap.ColorAdjustment.Levels(0.03F, 0.9F, 0.05F, 1.5F, 0.7F, Aurigma.GraphicsMill.HistogramMode.Sum);