AdjustLevels Method (GrayscaleBitmap)
In This Topic
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).
Syntax
'Declaration
Public Sub AdjustLevels( _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Integer, _
Optional ByVal As System.Single _
)
public void AdjustLevels(
System.int ,
System.int ,
System.int ,
System.int ,
System.float
)
Parameters
- blackPoint
- The input black point (from 0 to 255).
- whitePoint
- The input white point (from 0 to 255).
- outputBlack
- The output black point (from 0 to 255).
- outputWhite
- The output white point (from 0 to 255).
- midtone
- The value of gamma correction.
See Also