Package com.itextpdf.kernel.colors
Class CalRgb
java.lang.Object
com.itextpdf.kernel.colors.Color
com.itextpdf.kernel.colors.CalRgb
Representation of a CalRgb color space.
-
Field Summary
Fields inherited from class com.itextpdf.kernel.colors.Color
colorSpace, colorValue
-
Constructor Summary
ConstructorDescriptionCalRgb
(float[] whitePoint, float[] value) Creates a new CalRgb color using the given white point and RGB color values.CalRgb
(float[] whitePoint, float[] blackPoint, float[] gamma, float[] matrix, float[] value) Creates a new CalRgb color using the given white point, black point, gamma, matrix and RGB color values.Creates a new CalRgb color using the givenPdfCieBasedCs
color space.CalRgb
(PdfCieBasedCs.CalRgb cs, float[] value) Creates a new CalRgb color using the givenPdfCieBasedCs
color space and RGB color values. -
Method Summary
Methods inherited from class com.itextpdf.kernel.colors.Color
convertCmykToRgb, convertRgbToCmyk, createColorWithColorSpace, equals, getColorSpace, getColorValue, getNumberOfComponents, hashCode, makeColor, makeColor, setColorValue
-
Constructor Details
-
CalRgb
Creates a new CalRgb color using the givenPdfCieBasedCs
color space.- Parameters:
-
cs
- Color space
-
CalRgb
Creates a new CalRgb color using the givenPdfCieBasedCs
color space and RGB color values.- Parameters:
-
cs
- Color space -
value
- RGB color values
-
CalRgb
public CalRgb(float[] whitePoint, float[] value) Creates a new CalRgb color using the given white point and RGB color values.- Parameters:
-
whitePoint
- Color values for defining the white point -
value
- RGB color values
-
CalRgb
public CalRgb(float[] whitePoint, float[] blackPoint, float[] gamma, float[] matrix, float[] value) Creates a new CalRgb color using the given white point, black point, gamma, matrix and RGB color values.- Parameters:
-
whitePoint
- Color values for defining the white point -
blackPoint
- Color values for defining the black point -
gamma
- Gamma correction -
matrix
- Matrix correction -
value
- RGB color value
-