XColor SetComponents Function. Set the color to a set of ColorSpace PDF components. ABCpdf .NET PDF Library.

ABCpdf .net

 
   

Set the color to a set of ColorSpace PDF components

 

   
Syntax  

[C#]
void SetComponents(double value1)
void SetComponents(double value1, double value2)
void SetComponents(double value1, double value2, double value3)
void SetComponents(double value1, double value2, double value3, double value4)

[Visual Basic]
Sub SetComponents(value1 As Double)
Sub SetComponents(value1 As Double, value2 As Double)
Sub SetComponents(value1 As Double, value2 As Double, value3 As Double)
Sub SetComponents(value1 As Double, value2 As Double, value3 As Double, value4 As Double)

 

   

Params
 
Name Description
value1 The intensity of the first component (typically 0 to 1)
value2 The intensity of the second component (typically 0 to 1)
value3 The intensity of the third component (typically 0 to 1)
value4 The intensity of the fourth component (typically 0 to 1)

 

   

Notes
 

Sets the color to the generic ColorSpace color space and provide a set of components for it.

PDF color components typically range between zero - no intensity - and one - 100% intensity. However this is not always the case. For color spaces such as Lab the components may take a wider range of values.

 

   

Example
 

None.