org.pdfbox.pdmodel.graphics.color
Class PDColorSpace
java.lang.Object
org.pdfbox.pdmodel.graphics.color.PDColorSpace
- COSObjectable
public abstract class PDColorSpace
extends java.lang.Object
This class represents a color space in a pdf document.
abstract ColorModel | createColorModel(int bpc) - Create a Java color model for this colorspace.
|
abstract ColorSpace | createColorSpace() - Create a Java colorspace for this colorspace.
|
COSBase | getCOSObject() - Convert this standard java object to a COS object.
|
abstract String | getName() - This will return the name of the color space.
|
abstract int | getNumberOfComponents() - This will get the number of components that this color space is made up of.
|
createColorModel
public abstract ColorModel createColorModel(int bpc)
throws IOException
Create a Java color model for this colorspace.
bpc
- The number of bits per component.
- A color model that can be used for Java AWT operations.
createColorSpace
public abstract ColorSpace createColorSpace()
throws IOException
Create a Java colorspace for this colorspace.
- A color space that can be used for Java AWT operations.
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.
- getCOSObject in interface COSObjectable
- The cos object that matches this Java object.
getName
public abstract String getName()
This will return the name of the color space.
- The name of the color space.
getNumberOfComponents
public abstract int getNumberOfComponents()
throws IOException
This will get the number of components that this color space is made up of.
- The number of components in this color space.