Document Solutions for PDF
DS.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GrayscaleBitmap Class / AdjustLevels Method
The input black point (from 0 to 255).
The input white point (from 0 to 255).
The output black point (from 0 to 255).
The output white point (from 0 to 255).
The value of gamma correction.

In This Topic
    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 blackPoint As System.Integer, _
       ByVal whitePoint As System.Integer, _
       ByVal outputBlack As System.Integer, _
       ByVal outputWhite As System.Integer, _
       Optional ByVal midtone As System.Single _
    ) 
    public void AdjustLevels( 
       System.int blackPoint,
       System.int whitePoint,
       System.int outputBlack,
       System.int outputWhite,
       System.float midtone
    )

    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