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,
Map resources)
Get the paint representing a pattern, optionally with the given
base paint.
|
getColorSpace, getColorSpace, getColorSpacepublic PatternSpace()
public PatternSpace(PDFColorSpace base)
public PDFColorSpace getBase()
public int getNumComponents()
getNumComponents in class PDFColorSpacepublic PDFPaint getPaint(float[] components)
getPaint in class PDFColorSpacecomponents - the color components corresponding to the given
colorspacepublic PDFPaint getPaint(PDFObject patternObj, float[] components, Map resources) throws IOException
patternObj - the pattern to rendercomponents - the components of the base paintIOExceptionCopyright © 2024. All rights reserved.