org.icepdf.core.pobjects.graphics
Class ICCBased
java.lang.Object
org.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.graphics.PColorSpace
org.icepdf.core.pobjects.graphics.ICCBased
public class ICCBased
- extends PColorSpace
put your documentation comment here
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getObject, getPObjectReference, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ICCBased
public ICCBased(Library l,
Stream h)
- Parameters:
l - h -
init
public void init()
- Description copied from class:
Dictionary
- Initiate the Dictionary. Retrieve any needed attributes.
- Overrides:
init in class Dictionary
getAlternate
public PColorSpace getAlternate()
- Get the alternative colour specified by the N dictionary entry. DeviceGray,
DeviceRGB, or DeviceCMYK, depending on whether the value of N is 1, 3
or 4, respectively.
- Returns:
- PDF colour space represented by the N (number of components)key.
getColor
public java.awt.Color getColor(float[] f)
- Specified by:
getColor in class PColorSpace
- Parameters:
f -
- Returns:
getColorSpace
public java.awt.color.ColorSpace getColorSpace()
getNumComponents
public int getNumComponents()
- Gets the number of components specified by the N entry.
- Specified by:
getNumComponents in class PColorSpace
- Returns:
- number of colour components in color space