[]
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)
Public Sub AdjustLevels(blackPoint As Color, whitePoint As Color, outputBlack As Color, outputWhite As Color, Optional midtone As Single = 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)
Public Sub AdjustLevels(blackPoint As UInteger, whitePoint As UInteger, outputBlack As UInteger, outputWhite As UInteger, Optional midtone As Single = 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. |