com.pdftools.expa
Class ColorSpace
java.lang.Object
com.pdftools.NativeLibrary
com.pdftools.expa.ExpaInitialize
com.pdftools.expa.ColorSpace
public class ColorSpace
- extends ExpaInitialize
Nested classes/interfaces inherited from class com.pdftools.NativeLibrary |
NativeLibrary.COLORCONVERSION, NativeLibrary.COLORSPACE, NativeLibrary.COMPRESSION, NativeLibrary.DITHERINGMODE, NativeLibrary.ERRORCODE, NativeLibrary.FONTTYPE, NativeLibrary.PERMISSION, NativeLibrary.RENDEREROPTION, NativeLibrary.RENDERINGMODE, NativeLibrary.ROTATEMODE, NativeLibrary.STRIPTYPE |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorSpace
public ColorSpace()
getComponentsPerPixel
public int getComponentsPerPixel()
- get the number of components per pixel.
- Returns:
- the number of components per pixel; for RGB images, this will be 3; for CMYK images: 4.
getBaseColorSpace
public ColorSpace getBaseColorSpace()
- get an ColorSpace interface to the base color space.
- Returns:
- an ColorSpace interface to the base color space if it is existing.
isIndexed
public boolean isIndexed()
- get the information if the color space is indexed.
- Returns:
- non-zero if the color space is indexed (if there is a palette).
getHighIndex
public int getHighIndex()
- get the information of the index values.
- Returns:
- the number of index values minus 1.
getLookup
public byte[] getLookup()
- get the colorspace lookup data
- Returns:
- the colorspace lookup data (palette).
length is (HighIndex+1)*ComponentsPerPixel
getName
public java.lang.String getName()
- get the name of the color space.