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.
  • Constructor Details

    • CalGray

      public CalGray (PdfCieBasedCs.CalGray cs)
      Creates a new CalGray color space using the given PdfCieBasedCs color space.
      Parameters:
      cs - Color space
    • CalGray

      public CalGray (PdfCieBasedCs.CalGray cs, float value)
      Creates a new CalGray color space using the given PdfCieBasedCs 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