org.pdfbox.pdmodel.graphics.color
Class PDDeviceCMYK
- COSObjectable
public class PDDeviceCMYK
This class represents a CMYK color space.
ColorModel | createColorModel(int bpc) - Create a Java color model for this colorspace.
|
ColorSpace | createColorSpace() - Create a Java colorspace for this colorspace.
|
String | getName() - This will return the name of the color space.
|
int | getNumberOfComponents() - This will get the number of components that this color space is made up of.
|
ABBREVIATED_NAME
public static final String ABBREVIATED_NAME
The abbreviated name of this color space.
INSTANCE
public static final PDDeviceCMYK INSTANCE
The single instance of this class.
NAME
public static final String NAME
The name of this color space.
createColorModel
public ColorModel createColorModel(int bpc)
throws IOException
Create a Java color model for this colorspace.
- createColorModel in interface PDColorSpace
bpc
- The number of bits per component.
- A color model that can be used for Java AWT operations.
createColorSpace
public ColorSpace createColorSpace()
throws IOException
Create a Java colorspace for this colorspace.
- createColorSpace in interface PDColorSpace
- A color space that can be used for Java AWT operations.
getName
public String getName()
This will return the name of the color space.
- getName in interface PDColorSpace
- The name of the color space.
getNumberOfComponents
public int getNumberOfComponents()
throws IOException
This will get the number of components that this color space is made up of.
- getNumberOfComponents in interface PDColorSpace
- The number of components in this color space.