GoDiagram Win Reference
ColorFromAhsb Method

The transparency of the color; 0.0f is completely transparent, 1.0f is completely opaque.
The "Hue" component of the color according to the HSB color model.
The "Saturation" component of the color according to the HSB color model.
The "Brightness" component of the color according to the HSB color model.
Creates a System.Drawing.Color structure from the four AHSB component values.
Syntax
'Declaration
 
Public Shared Function ColorFromAhsb( _
   ByVal alpha As Single, _
   ByVal hue As Single, _
   ByVal saturation As Single, _
   ByVal brightness As Single _
) As Color
public static Color ColorFromAhsb( 
   float alpha,
   float hue,
   float saturation,
   float brightness
)

Parameters

alpha
The transparency of the color; 0.0f is completely transparent, 1.0f is completely opaque.
hue
The "Hue" component of the color according to the HSB color model.
saturation
The "Saturation" component of the color according to the HSB color model.
brightness
The "Brightness" component of the color according to the HSB color model.

Return Value

Returns a System.Drawing.Color structure.
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. This is more efficient than GoColor.FromAhsb(alpha, hue, saturation, brightness).Color
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