org.pdfbox.pdmodel.graphics.color
Class PDDeviceN
- COSObjectable
This class represents a DeviceN color space.
static String | NAME - The name of this color space.
|
NAME
public static final String NAME
The name of this color space.
PDDeviceN
public PDDeviceN()
Constructor.
PDDeviceN
public PDDeviceN(COSArray separation)
Constructor.
separation
- The array containing all separation information.
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.
getAlternateColorSpace
public PDColorSpace getAlternateColorSpace()
throws IOException
This will get the alternate color space for this separation.
- The alternate color space.
getAttributes
public PDDeviceNAttributes getAttributes()
This will get the attributes that are associated with the deviceN
color space.
getColorantNames
public List getColorantNames()
This will get the colorant names. A list of string objects.
getName
public String getName()
This will return the name of the color space. For a PDSeparation object
this will always return "Separation"
- 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.
getTintTransform
public COSBase getTintTransform()
This will get the tint transform function. At this time the PDModel
does not support functions so we will just return the COSBase object. This
method will change in the future to be a PDModel object.
- The tint transform function.
setAlternateColorSpace
public void setAlternateColorSpace(PDColorSpace cs)
This will set the alternate color space.
cs
- The alternate color space.
setAttributes
public void setAttributes(PDDeviceNAttributes attributes)
This will set the color space attributes. If null is passed in then
all attribute will be removed.
attributes
- The color space attributes.
setColorantNames
public void setColorantNames(List names)
This will set the list of colorants.
names
- The list of colorant names.
setTintTransform
public void setTintTransform(COSBase tint)
This will set the tint transform function. At this time the PDModel
does not support functions so we will just return the COSBase object. This
method will change in the future to be a PDModel object.
tint
- The tint transform function.