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