Nevron .NET Vision
Nevron.GraphicsCore Namespace / NColorF Structure / GenerateGradients Method / GenerateGradients(Color,Color,Int32) Method
The start color.
The end color.
The number of gradient colors to generate.


In This Topic
    GenerateGradients(Color,Color,Int32) Method
    In This Topic
    Calculates the given number of gradients from color1 to color2 (including them both).
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GenerateGradients( _
       ByVal color1 As System.Drawing.Color, _
       ByVal color2 As System.Drawing.Color, _
       ByVal steps As System.Integer _
    ) As System.Drawing.Color()
    'Usage
     
    
    Dim color1 As System.Drawing.Color
    Dim color2 As System.Drawing.Color
    Dim steps As System.Integer
    Dim value() As System.Drawing.Color
     
    value = NColorF.GenerateGradients(color1, color2, steps)
    public static System.Drawing.Color[] GenerateGradients( 
       System.Drawing.Color color1,
       System.Drawing.Color color2,
       System.int steps
    )

    Parameters

    color1
    The start color.
    color2
    The end color.
    steps
    The number of gradient colors to generate.

    Return Value

    The generated gradiebr colors.
    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