[]
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(Color blackPoint, Color whitePoint, Color outputBlack, Color outputWhite, float midtone = 1)
| Type | Name | Description |
|---|---|---|
| Color | blackPoint | |
| Color | whitePoint | |
| Color | outputBlack | |
| Color | outputWhite | |
| float | midtone |
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(uint blackPoint, uint whitePoint, uint outputBlack, uint outputWhite, float midtone = 1)
| Type | Name | Description |
|---|---|---|
| uint | blackPoint | The input black point in 32-bit ARGB format (the Alpha channel is ignored). |
| uint | whitePoint | The input white point in 32-bit ARGB format (the Alpha channel is ignored). |
| uint | outputBlack | The output black point in 32-bit ARGB format (the Alpha channel is ignored). |
| uint | outputWhite | The output white point in 32-bit ARGB format (the Alpha channel is ignored). |
| float | midtone | The value of gamma correction. |