com.pdftools.expa
Class ColorSpace

java.lang.Object
  extended by com.pdftools.NativeLibrary
      extended by com.pdftools.expa.ExpaInitialize
          extended by com.pdftools.expa.ColorSpace

public class ColorSpace
extends ExpaInitialize


Nested Class Summary
 
Nested classes/interfaces inherited from class com.pdftools.expa.ExpaInitialize
ExpaInitialize.CONTENTOBJECT, ExpaInitialize.ORIENTATION, ExpaInitialize.Rectangle, ExpaInitialize.TransformMatrix
 
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
 
Field Summary
 
Fields inherited from class com.pdftools.NativeLibrary
VERSION
 
Constructor Summary
ColorSpace()
           
 
Method Summary
 ColorSpace getBaseColorSpace()
          get an ColorSpace interface to the base color space.
 int getComponentsPerPixel()
          get the number of components per pixel.
 int getHighIndex()
          get the information of the index values.
 byte[] getLookup()
          get the colorspace lookup data
 java.lang.String getName()
          get the name of the color space.
 boolean isIndexed()
          get the information if the color space is indexed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorSpace

public ColorSpace()
Method Detail

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.