Represents a color More...
◆ Color()
iText.Kernel.Colors.Color.Color |
( |
PdfColorSpace |
colorSpace, |
|
|
float[] |
colorValue |
|
) |
|
|
|
inlinepackage |
Creates a Color of certain color space and color value.
Creates a Color of certain color space and color value. If color value is set in null, all value components will be initialised with zeroes.
-
Parameters
-
colorSpace |
the color space to which the created Color object relates |
colorValue |
the color value of the created Color object |
◆ ConvertCmykToRgb()
◆ ConvertRgbToCmyk()
◆ CreateColorWithColorSpace()
Creates a color object based on the passed through values.
Creates a color object based on the passed through values.
-
Parameters
-
colorValue |
the float array with the values |
The number of array elements determines the colour space in which the colour shall be defined: 0 - No colour; transparent 1 - DeviceGray 3 - DeviceRGB 4 - DeviceCMYK
-
Returns
-
Color the color or null if it's invalid
◆ Equals()
override bool iText.Kernel.Colors.Color.Equals |
( |
Object |
o |
) |
|
|
inline |
Indicates whether the color is equal to the given color.
Indicates whether the color is equal to the given color. The color space and color value are considered during the comparison.
◆ GetColorSpace()
virtual PdfColorSpace iText.Kernel.Colors.Color.GetColorSpace |
( |
|
) |
|
|
inlinevirtual |
Returns the color space to which the color is related.
-
Returns
-
the color space of the color
◆ GetColorValue()
virtual float [] iText.Kernel.Colors.Color.GetColorValue |
( |
|
) |
|
|
inlinevirtual |
Returns the color value of the color
-
Returns
-
the color value
◆ GetHashCode()
override int iText.Kernel.Colors.Color.GetHashCode |
( |
|
) |
|
|
inline |
◆ GetNumberOfComponents()
virtual int iText.Kernel.Colors.Color.GetNumberOfComponents |
( |
|
) |
|
|
inlinevirtual |
Returns the number of color value components
-
Returns
-
the number of color value components
◆ MakeColor() [1/2]
Makes a Color of certain color space.
Makes a Color of certain color space. All color value components will be initialised with zeroes.
-
Parameters
-
colorSpace |
the color space to which the returned Color object relates |
-
Returns
-
the created Color object.
◆ MakeColor() [2/2]
Makes a Color of certain color space and color value.
Makes a Color of certain color space and color value. If color value is set in null, all value components will be initialised with zeroes.
-
Parameters
-
colorSpace |
the color space to which the returned Color object relates |
colorValue |
the color value of the returned Color object |
-
Returns
-
the created Color object.
◆ SetColorValue()
virtual void iText.Kernel.Colors.Color.SetColorValue |
( |
float[] |
value |
) |
|
|
inlinevirtual |
◆ colorSpace
The color space of the color
◆ colorValue
float [] iText.Kernel.Colors.Color.colorValue |
|
package |
The color value of the color