Multivalent API

multivalent.std.adaptor.pdf
Class ColorSpaces

java.lang.Object
  extended by multivalent.std.adaptor.pdf.ColorSpaces

public class ColorSpaces
extends java.lang.Object

Returns Java color space that matches PDF specification. Used by ordinary drawing (cs, CS) and images (/ColorSpace).

Version:
$Revision: 1.8 $ $Date: 2004/04/26 21:27:59 $

Method Summary
static java.awt.color.ColorSpace createColorSpace(java.lang.Object csref, PDFReader pdfr)
          Interpret PDF color space represented by csref and return a ColorSpace that implements it.
static java.awt.image.IndexColorModel createIndexColorModel(java.lang.Object csref, int bpc, PDFReader pdfr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createColorSpace

public static java.awt.color.ColorSpace createColorSpace(java.lang.Object csref,
                                                         PDFReader pdfr)
                                                  throws java.io.IOException
Interpret PDF color space represented by csref and return a ColorSpace that implements it.

Parameters:
csref - IRef or Dict
Throws:
java.io.IOException

createIndexColorModel

public static java.awt.image.IndexColorModel createIndexColorModel(java.lang.Object csref,
                                                                   int bpc,
                                                                   PDFReader pdfr)
                                                            throws java.io.IOException
Throws:
java.io.IOException

Multivalent API