Class PDCIEBasedColorSpace
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace
-
- org.apache.pdfbox.pdmodel.graphics.color.PDCIEBasedColorSpace
-
- All Implemented Interfaces:
COSObjectable
- Direct Known Subclasses:
PDCIEDictionaryBasedColorSpace
,PDICCBased
public abstract class PDCIEBasedColorSpace extends PDColorSpace
CIE-based colour spaces specify colours in a way that is independent of the characteristics of any particular output device. They are based on an international standard for colour specification created by the Commission Internationale de l'Éclairage (CIE).- Author:
- John Hewson
-
-
Field Summary
-
Fields inherited from class org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace
array
-
-
Constructor Summary
Constructors Constructor Description PDCIEBasedColorSpace()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImage
toRGBImage(java.awt.image.WritableRaster raster)
Returns the (A)RGB equivalent of the given raster.java.lang.String
toString()
-
Methods inherited from class org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace
create, create, create, getCOSObject, getDefaultDecode, getInitialColor, getName, getNumberOfComponents, toRGB, toRGBImageAWT
-
-
-
-
Method Detail
-
toRGBImage
public java.awt.image.BufferedImage toRGBImage(java.awt.image.WritableRaster raster) throws java.io.IOException
Description copied from class:PDColorSpace
Returns the (A)RGB equivalent of the given raster.- Specified by:
toRGBImage
in classPDColorSpace
- Parameters:
raster
- the source raster- Returns:
- an (A)RGB buffered image
- Throws:
java.io.IOException
- if the color conversion fails
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-