XColor FromRgb Function. Create an XColor from a set of RGB component values. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

Create an XColor from a set of RGB component values.

 

   
Syntax  

[C#]
static XColor FromRgb(int red, int green, int blue)

[Visual Basic]
Shared Function FromRgb(red As Integer, green As Integer, blue As Integer) As XColor

 

   

Params
 
Name Description
red The amount of red (0 to 255)
green The amount of green (0 to 255)
blue The amount of blue (0 to 255)
return The resulting XColor.

 

   

Notes
 

Create an XColor from a set of RGB component values ranging between zero and 255..

 

   

Example
 

None.