Spread Windows Forms 15.0
GrapeCity.Spreadsheet Assembly / GrapeCity.Spreadsheet Namespace / Color Structure / FromArgb Method / FromArgb(Int32,Int32,Int32,Int32) Method
The alpha component. Valid values are 0 through 255.
The red component. Valid values are 0 through 255.
The green component. Valid values are 0 through 255.
The blue component. Valid values are 0 through 255.


In This Topic
    FromArgb(Int32,Int32,Int32,Int32) Method
    In This Topic
    Creates a Color structure from the four 8-bit ARGB components (alpha, red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function FromArgb( _
       ByVal alpha As Integer, _
       ByVal red As Integer, _
       ByVal green As Integer, _
       ByVal blue As Integer _
    ) As Color
    'Usage
     
    
    Dim alpha As Integer
    Dim red As Integer
    Dim green As Integer
    Dim blue As Integer
    Dim value As Color
     
    value = Color.FromArgb(alpha, red, green, blue)
    public static Color FromArgb( 
       int alpha,
       int red,
       int green,
       int blue
    )

    Parameters

    alpha
    The alpha component. Valid values are 0 through 255.
    red
    The red component. Valid values are 0 through 255.
    green
    The green component. Valid values are 0 through 255.
    blue
    The blue component. Valid values are 0 through 255.

    Return Value

    The Color value that this method creates.
    See Also