Package com.itextpdf.kernel.colors
Class CalRgb
- java.lang.Object
-
- com.itextpdf.kernel.colors.Color
-
- com.itextpdf.kernel.colors.CalRgb
-
public class CalRgb extends Color
Representation of a CalRgb color space.
-
-
Field Summary
-
Fields inherited from class com.itextpdf.kernel.colors.Color
colorSpace, colorValue
-
-
Constructor Summary
Constructors Constructor Description CalRgb(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.CalRgb(PdfCieBasedCs.CalRgb cs)
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 Detail
-
CalRgb
public CalRgb(PdfCieBasedCs.CalRgb cs)
Creates a new CalRgb color using the givenPdfCieBasedCs
color space.- Parameters:
cs
- Color space
-
CalRgb
public CalRgb(PdfCieBasedCs.CalRgb cs, float[] value)
Creates a new CalRgb color using the givenPdfCieBasedCs
color space and RGB color values.- Parameters:
cs
- Color spacevalue
- 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 pointvalue
- 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 pointblackPoint
- Color values for defining the black pointgamma
- Gamma correctionmatrix
- Matrix correctionvalue
- RGB color value
-
-