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 Color
colorSpace, colorValue -
Constructor Summary
ConstructorsConstructorDescriptionCalGray(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 givenPdfCieBasedCscolor space.CalGray(PdfCieBasedCs.CalGray cs, float value) Creates a new CalGray color space using the givenPdfCieBasedCscolor space and color value. -
Method Summary
Methods inherited from class Color
convertCmykToRgb, convertRgbToCmyk, createColorWithColorSpace, equals, getColorSpace, getColorValue, getNumberOfComponents, hashCode, makeColor, makeColor, setColorValue
-
Constructor Details
-
CalGray
Creates a new CalGray color space using the givenPdfCieBasedCscolor space.- Parameters:
cs- Color space
-
CalGray
Creates a new CalGray color space using the givenPdfCieBasedCscolor space and color value.- Parameters:
cs- Color spacevalue- 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 pointvalue- 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 pointblackPoint- Color values for defining the black pointgamma- Gamma correctionvalue- Gray color value
-