COSObjectablepublic final class PDJPXColorSpace extends PDColorSpace
array| Constructor | Description |
|---|---|
PDJPXColorSpace(java.awt.color.ColorSpace colorSpace) |
Creates a new JPX color space from the given AWT color space.
|
| Modifier and Type | Method | Description |
|---|---|---|
COSBase |
getCOSObject() |
Convert this standard java object to a COS object.
|
float[] |
getDefaultDecode(int bitsPerComponent) |
Returns the default decode array for this color space.
|
PDColor |
getInitialColor() |
Returns the initial color value for this color space.
|
java.lang.String |
getName() |
Returns the name of the color space.
|
int |
getNumberOfComponents() |
Returns the number of components in this color space
|
float[] |
toRGB(float[] value) |
Returns the RGB equivalent of the given color value.
|
java.awt.image.BufferedImage |
toRGBImage(java.awt.image.WritableRaster raster) |
Returns the (A)RGB equivalent of the given raster.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreate, create, create, toRGBImageAWTpublic PDJPXColorSpace(java.awt.color.ColorSpace colorSpace)
colorSpace - AWT color space from a JPX imagepublic java.lang.String getName()
PDColorSpacegetName in class PDColorSpacepublic int getNumberOfComponents()
PDColorSpacegetNumberOfComponents in class PDColorSpacepublic float[] getDefaultDecode(int bitsPerComponent)
PDColorSpacegetDefaultDecode in class PDColorSpacebitsPerComponent - the number of bits per component.public PDColor getInitialColor()
PDColorSpacegetInitialColor in class PDColorSpacepublic float[] toRGB(float[] value)
PDColorSpacetoRGB in class PDColorSpacevalue - a color value with component values between 0 and 1public java.awt.image.BufferedImage toRGBImage(java.awt.image.WritableRaster raster)
throws java.io.IOException
PDColorSpacetoRGBImage in class PDColorSpaceraster - the source rasterjava.io.IOException - if the color conversion failspublic COSBase getCOSObject()
COSObjectablegetCOSObject in interface COSObjectablegetCOSObject in class PDColorSpaceCopyright © 2002–2018. All rights reserved.