Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Imaging Namespace / GcBitmap Class / AdjustLevels Method / AdjustLevels(Color,Color,Color,Color,Single) Method

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

    Parameters

    blackPoint
    whitePoint
    outputBlack
    outputWhite
    midtone
    See Also