| Modifier and Type | Field and Description |
|---|---|
| private PDColor |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PDRange | |
| public PDRange | |
| public float[] | getDefaultDecode(int
the number of bits per component. bitsPerComponent)Implements abstract org. Returns the default decode array for this color space. |
| private COSArray | Returns: the new range array.creates a range array with default values (-100..100 -100..100). |
| public PDColor | getInitialColor()
Implements abstract org. Returns the initial color value for this color space. |
| public String | getName()
Implements abstract org. Returns the name of the color space. |
| public int | getNumberOfComponents()
Implements abstract org. Returns the number of components in this color space |
| private float | |
| public void | |
| public void | |
| private void | |
| public BufferedImage | toRawImage(WritableRaster
the source raster raster)Overrides org. Returns the image in this colorspace or null. |
| public float[] | toRGB(float[]
a color value with component values between 0 and 1 value)Implements abstract org. Returns the RGB equivalent of the given color value. |
| public BufferedImage | toRGBImage(WritableRaster
the source raster raster)Overrides org. Returns the (A)RGB equivalent of the given raster. |
| initialColor | back to summary |
|---|---|
| private PDColor initialColor | |
| PDLab | back to summary |
|---|---|
| public PDLab() Creates a new Lab color space. | |
| PDLab | back to summary |
|---|---|
| public PDLab(COSArray lab) Creates a new Lab color space from a PDF array.
| |
| getARange | back to summary |
|---|---|
| public PDRange getARange() This will get the valid range for the "a" component. If none is found then the default will be returned, which is -100..100.
| |
| getBRange | back to summary |
|---|---|
| public PDRange getBRange() This will get the valid range for the "b" component. If none is found then the default will be returned, which is -100..100.
| |
| getDefaultDecode | back to summary |
|---|---|
| public float[] getDefaultDecode(int bitsPerComponent) Implements abstract org. Doc from org. Returns the default decode array for this color space.
| |
| getDefaultRangeArray | back to summary |
|---|---|
| private COSArray getDefaultRangeArray() creates a range array with default values (-100..100 -100..100).
| |
| getInitialColor | back to summary |
|---|---|
| public PDColor getInitialColor() Implements abstract org. Doc from org. Returns the initial color value for this color space. | |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of the color space. | |
| getNumberOfComponents | back to summary |
|---|---|
| public int getNumberOfComponents() Implements abstract org. Doc from org. Returns the number of components in this color space
| |
| inverse | back to summary |
|---|---|
| private float inverse(float x) | |
| setARange | back to summary |
|---|---|
| public void setARange(PDRange range) This will set the a range for the "a" component.
| |
| setBRange | back to summary |
|---|---|
| public void setBRange(PDRange range) This will set the "b" range for this color space.
| |
| setComponentRangeArray | back to summary |
|---|---|
| private void setComponentRangeArray(PDRange range, int index) | |
| toRawImage | back to summary |
|---|---|
| public BufferedImage toRawImage(WritableRaster raster) Overrides org. Doc from org. 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
| |
| toRGB | back to summary |
|---|---|
| public float[] toRGB(float[] value) Implements abstract org. Doc from org. Returns the RGB equivalent of the given color value.
| |
| toRGBImage | back to summary |
|---|---|
| public BufferedImage toRGBImage(WritableRaster raster) throws IOException Overrides org. Doc from org. Returns the (A)RGB equivalent of the given raster.
| |