public class AlternateColorSpace extends PDFColorSpace
COLORSPACE_CMYK, COLORSPACE_GRAY, COLORSPACE_PATTERN, COLORSPACE_RGB
Constructor and Description |
---|
AlternateColorSpace(PDFColorSpace alternate,
PDFFunction function)
Creates a new instance of AlternateColorSpace
|
Modifier and Type | Method and Description |
---|---|
java.awt.color.ColorSpace |
getColorSpace()
get the original Java ColorSpace.
|
int |
getNumComponents()
get the number of components expected in the getPaint command
|
PDFPaint |
getPaint(float[] components)
get the PDFPaint representing the color described by the
given color components
|
getColorSpace, getColorSpace
public AlternateColorSpace(PDFColorSpace alternate, PDFFunction function)
public int getNumComponents()
getNumComponents
in class PDFColorSpace
public PDFPaint getPaint(float[] components)
getPaint
in class PDFColorSpace
components
- the color components corresponding to the given
colorspacepublic java.awt.color.ColorSpace getColorSpace()
getColorSpace
in class PDFColorSpace