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 |
|---|---|
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, getColorSpacepublic AlternateColorSpace(PDFColorSpace alternate, PDFFunction function)
public int getNumComponents()
getNumComponents in class PDFColorSpacepublic PDFPaint getPaint(float[] components)
getPaint in class PDFColorSpacecomponents - the color components corresponding to the given
colorspacepublic ColorSpace getColorSpace()
getColorSpace in class PDFColorSpaceCopyright © 2024. All rights reserved.