GoDiagram Win Reference
ColorFromRgb Method

The "Red" component of the color according to the RGB color model.
The "Green" component of the color according to the RGB color model.
The "Blue" component of the color according to the RGB color model.
Creates a System.Drawing.Color structure from the three RGB component values.
Syntax
'Declaration
 
Public Shared Function ColorFromRgb( _
   ByVal red As Single, _
   ByVal green As Single, _
   ByVal blue As Single _
) As Color
public static Color ColorFromRgb( 
   float red,
   float green,
   float blue
)

Parameters

red
The "Red" component of the color according to the RGB color model.
green
The "Green" component of the color according to the RGB color model.
blue
The "Blue" component of the color according to the RGB color model.

Return Value

Returns a System.Drawing.Color structure.
Remarks
Each of the parameter values range from 0.0f to 1.0f, inclusive. Alpha is set to 1.0f (fully opaque).
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