Class CMYKColorSpace

java.lang.Object
java.awt.color.ColorSpace
com.sun.pdfview.colorspace.CMYKColorSpace
All Implemented Interfaces:
Serializable

public class CMYKColorSpace extends ColorSpace
A ColorSpace for the CMYK color space.
See Also:
  • Constructor Details

    • CMYKColorSpace

      public CMYKColorSpace()
      create a new CMYK color space: a ColorSpace with 4 components
  • 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 CMYK.
      Specified by:
      fromRGB in class ColorSpace
      Parameters:
      rgbvalue - the red, green, and blue values (0-1)
      Returns:
      the CMYK values (0-1)
    • 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_CMYK)
      Overrides:
      getType in class ColorSpace
    • toCIEXYZ

      public float[] toCIEXYZ(float[] colorvalue)
      Convert from CMYK to CIEXYZ. NOT IMPLEMENTED
      Specified by:
      toCIEXYZ in class ColorSpace
    • toRGB

      public float[] toRGB(float[] colorvalue)
      Convert from CMYK to RGB.
      Specified by:
      toRGB in class ColorSpace
      Parameters:
      colorvalue - the CMYK values (0-1)
      Returns:
      the RGB values (0-1)