Nevron .NET Vision
Nevron.GraphicsCore Namespace / NColorF Structure / ChangeColorBrightness Method / ChangeColorBrightness(Color,Single) Method
Color to correct.
The brightness correction factor. Must be between -1 and 1. Negative values produce darker colors.


In This Topic
    ChangeColorBrightness(Color,Single) Method
    In This Topic
    Creates color with corrected brightness.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function ChangeColorBrightness( _
       ByVal color As System.Drawing.Color, _
       ByVal correctionFactor As System.Single _
    ) As System.Drawing.Color
    'Usage
     
    
    Dim color As System.Drawing.Color
    Dim correctionFactor As System.Single
    Dim value As System.Drawing.Color
     
    value = NColorF.ChangeColorBrightness(color, correctionFactor)
    public static System.Drawing.Color ChangeColorBrightness( 
       System.Drawing.Color color,
       System.float correctionFactor
    )

    Parameters

    color
    Color to correct.
    correctionFactor
    The brightness correction factor. Must be between -1 and 1. Negative values produce darker colors.

    Return Value

    Corrected Color structure.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also