Document Solutions for PDF
GrapeCity.Documents.Imaging Assembly / GrapeCity.Documents.Drawing Namespace / HslColor Structure / HslColor Constructor / HslColor Constructor(Single,Single,Single,Single)
Hue value in the range [0, 360].
Saturation value in the range [0, 1].
Lightness value in the range [0, 1].
Opacity value in the range [0, 1].

In This Topic
    HslColor Constructor(Single,Single,Single,Single)
    In This Topic
    Initializes a new instance of the HslColor struct.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal hue As System.Single, _
       ByVal saturation As System.Single, _
       ByVal lightness As System.Single, _
       Optional ByVal opacity As System.Single _
    )
    public HslColor( 
       System.float hue,
       System.float saturation,
       System.float lightness,
       System.float opacity
    )

    Parameters

    hue
    Hue value in the range [0, 360].
    saturation
    Saturation value in the range [0, 1].
    lightness
    Lightness value in the range [0, 1].
    opacity
    Opacity value in the range [0, 1].
    See Also