1 31 package org.pdfbox.pdmodel.graphics.color; 32 33 import org.pdfbox.cos.COSBase; 34 import org.pdfbox.cos.COSName; 35 36 import org.pdfbox.pdmodel.common.COSObjectable; 37 38 import java.io.IOException ; 39 40 import java.awt.color.ColorSpace ; 41 import java.awt.image.ColorModel ; 42 43 44 50 public abstract class PDColorSpace implements COSObjectable 51 { 52 57 public abstract String getName(); 58 59 66 public abstract int getNumberOfComponents() throws IOException ; 67 68 73 public COSBase getCOSObject() 74 { 75 return COSName.getPDFName( getName() ); 76 } 77 78 85 public abstract ColorSpace createColorSpace() throws IOException ; 86 87 96 public abstract ColorModel createColorModel( int bpc ) throws IOException ; 97 } | Popular Tags |