GoDiagram Win Reference
SetHsl Method

The "Hue" component of the color according to the HSL color model.
The "Saturation" component of the color according to the HSL color model.
The "Luminance" component of the color according to the HSL color model.
Sets the color of the Northwoods.Go.Draw.GoColor from the three HSL component values.
Syntax
'Declaration
 
Public Sub SetHsl( _
   ByVal hue As Single, _
   ByVal saturation As Single, _
   ByVal luminance As Single _
) 
public void SetHsl( 
   float hue,
   float saturation,
   float luminance
)

Parameters

hue
The "Hue" component of the color according to the HSL color model.
saturation
The "Saturation" component of the color according to the HSL color model.
luminance
The "Luminance" component of the color according to the HSL color model.
Remarks
The hue parameter value ranges from 0.0f to 360.0f, inclusive. Each of the other parameter values range from 0.0f to 1.0f, inclusive. Alpha is unmodified. This is more efficient than setting each of the properties sequentially.
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

Reference

GoColor Structure
GoColor Members

 

 


© 2015. Northwoods Software Corporation. All Rights Reserved.

Send Feedback