Class YCCKColorSpace

java.lang.Object
java.awt.color.ColorSpace
org.loboevolution.pdfview.colorspace.YCCKColorSpace
All Implemented Interfaces:
Serializable

public class YCCKColorSpace extends ColorSpace
A ColorSpace for the YCCK color space. This color space converts to CMYK and then uses an existing CMYK color space to convert from CMYK to RGB. This allows embedded CMYK color profiles to be used with YCCK images. If no CMYK color space is provided then by default it uses a CMYKColorSpace. Only toRGB is supported.

Author Ben Day

See Also:
  • Constructor Details

    • YCCKColorSpace

      public YCCKColorSpace(ColorSpace existingCmykColorSpace)
      create a new YCCK color space: a ColorSpace with 4 components
      Parameters:
      existingCmykColorSpace - a ColorSpace object.
    • YCCKColorSpace

      public YCCKColorSpace()

      Constructor for YCCKColorSpace.

  • Method Details

    • fromCIEXYZ

      public float[] fromCIEXYZ(float[] colorvalue)

      Convert from CIEXYZ to RGB. NOT IMPLEMENTED

      Specified by:
      fromCIEXYZ in class ColorSpace
    • fromRGB

      public float[] fromRGB(float[] rgbvalue)

      Convert from RGB to YCCK. NOT IMPLEMENTED

      Specified by:
      fromRGB in class ColorSpace
    • getNumComponents

      public int getNumComponents()

      the number of components

      Overrides:
      getNumComponents in class ColorSpace
    • getName

      public String getName(int idx)

      the name of this color space

      Overrides:
      getName in class ColorSpace
    • getType

      public int getType()

      the type of this color space (TYPE_4CLR)

      Overrides:
      getType in class ColorSpace
    • toCIEXYZ

      public float[] toCIEXYZ(float[] colorvalue)

      Convert from YCCK to CIEXYZ. NOT IMPLEMENTED

      Specified by:
      toCIEXYZ in class ColorSpace
    • toRGB

      public float[] toRGB(float[] colorvalue)

      Convert from YCCK to RGB.

      Specified by:
      toRGB in class ColorSpace