public class PatternSpace extends PDFColorSpace
COLORSPACE_CMYK, COLORSPACE_GRAY, COLORSPACE_PATTERN, COLORSPACE_RGB
Constructor and Description |
---|
PatternSpace() |
PatternSpace(PDFColorSpace base)
Create a pattern space with the given color space as a base
|
Modifier and Type | Method and Description |
---|---|
PDFColorSpace |
getBase()
Get the base color space
|
int |
getNumComponents()
Get the number of components we want
|
PDFPaint |
getPaint(float[] components)
get the PDFPaint representing the color described by the
given color components
|
PDFPaint |
getPaint(PDFObject patternObj,
float[] components,
java.util.Map resources)
Get the paint representing a pattern, optionally with the given
base paint.
|
getColorSpace, getColorSpace, getColorSpace
public PatternSpace()
public PatternSpace(PDFColorSpace base)
public PDFColorSpace getBase()
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 PDFPaint getPaint(PDFObject patternObj, float[] components, java.util.Map resources) throws java.io.IOException
patternObj
- the pattern to rendercomponents
- the components of the base paintjava.io.IOException