Package com.itextpdf.kernel.colors
Class CalGray
- java.lang.Object
-
- com.itextpdf.kernel.colors.Color
-
- com.itextpdf.kernel.colors.CalGray
-
public class CalGray extends Color
Representation of a CalGray color space.
-
-
Field Summary
-
Fields inherited from class com.itextpdf.kernel.colors.Color
colorSpace, colorValue
-
-
Constructor Summary
Constructors Constructor Description CalGray(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.CalGray(PdfCieBasedCs.CalGray cs)
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 Detail
-
CalGray
public CalGray(PdfCieBasedCs.CalGray cs)
Creates a new CalGray color space using the givenPdfCieBasedCs
color space.- Parameters:
cs
- Color space
-
CalGray
public CalGray(PdfCieBasedCs.CalGray cs, float value)
Creates a new CalGray color space using the givenPdfCieBasedCs
color 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
-
-