Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.graphics.color

public abstract Class PDCIEBasedColorSpace

extends PDColorSpace
Class Inheritance
Known Direct Subclasses
org.apache.pdfbox.pdmodel.graphics.color.PDCIEDictionaryBasedColorSpace, org.apache.pdfbox.pdmodel.graphics.color.PDICCBased
Imports
java.awt.image.BufferedImage, .WritableRaster, java.io.IOException

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

Inherited from org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace:
array

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BufferedImage
toRawImage(WritableRaster
the source raster
raster
)

Implements abstract org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.toRawImage.

Returns the image in this colorspace or null.

public BufferedImage
toRGBImage(WritableRaster
the source raster
raster
)

Implements abstract org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.toRGBImage.

Returns the (A)RGB equivalent of the given raster.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace:
createcreatecreategetCOSObjectgetDefaultDecodegetInitialColorgetNamegetNumberOfComponentstoRawImagetoRGBtoRGBImageAWT

Constructor Detail

PDCIEBasedColorSpaceback to summary
public PDCIEBasedColorSpace()

Method Detail

toRawImageback to summary
public BufferedImage toRawImage(WritableRaster raster) throws IOException

Implements abstract org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.toRawImage.

Doc from org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.toRawImage.

Returns the image in this colorspace or null. No conversion is performed. For special colorspaces like PDSeparation the image is returned in the gray colorspace. For undefined colorspaces like DeviceCMYK/DeviceRGB and DeviceGray null is returned. You can always fallback to toRGBImage(WritableRaster) if this returns null.

Parameters
raster:WritableRaster

the source raster

Returns:BufferedImage

an buffered image in this colorspace. Or null if it is not possible to extract that image with the original colorspace without conversion.

Annotations
@Override
Exceptions
IOException:
if the image conversion fails
toRGBImageback to summary
public BufferedImage toRGBImage(WritableRaster raster) throws IOException

Implements abstract org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.toRGBImage.

Doc from org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace.toRGBImage.

Returns the (A)RGB equivalent of the given raster.

Parameters
raster:WritableRaster

the source raster

Returns:BufferedImage

an (A)RGB buffered image

Annotations
@Override
Exceptions
IOException:
if the color conversion fails
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override