[]
Adjusts the levels of an image histogram.
The method maps the input range of values (blackPoint..whitePoint) to the output range (outputBlack..outputWhite) using the specified gamma correction (midtone).
public void AdjustLevels(int blackPoint, int whitePoint, int outputBlack, int outputWhite, float midtone = 1)
Public Sub AdjustLevels(blackPoint As Integer, whitePoint As Integer, outputBlack As Integer, outputWhite As Integer, Optional midtone As Single = 1)
Type | Name | Description |
---|---|---|
int | blackPoint | The input black point (from 0 to 255). |
int | whitePoint | The input white point (from 0 to 255). |
int | outputBlack | The output black point (from 0 to 255). |
int | outputWhite | The output white point (from 0 to 255). |
float | midtone | The value of gamma correction. |