public class ColorSpace extends Object
jj2000.j2k.icc.ICCProfile| Modifier and Type | Class and Description |
|---|---|
static class |
ColorSpace.CSEnum
Colorspace enumeration class
|
static class |
ColorSpace.Enumeration
Typesafe enumeration class
|
static class |
ColorSpace.MethodEnum
Method enumeration class
|
| Modifier and Type | Field and Description |
|---|---|
static ColorSpace.MethodEnum |
ENUMERATED
method enumeration
|
static String |
eol |
static ColorSpace.CSEnum |
GreyScale
colorspace enumeration
|
HeaderDecoder |
hd
Parameter Specs
|
static ColorSpace.MethodEnum |
ICC_PROFILED
method enumeration
|
static ColorSpace.CSEnum |
Illegal
colorspace enumeration
|
ParameterList |
pl
Parameter Specs
|
static ColorSpace.CSEnum |
sRGB
colorspace enumeration
|
static ColorSpace.CSEnum |
sYCC
colorspace enumeration
|
static ColorSpace.CSEnum |
Unknown
colorspace enumeration
|
| Constructor and Description |
|---|
ColorSpace(RandomAccessIO in,
HeaderDecoder hd,
ParameterList pl)
public constructor which takes in the image, parameterlist and the
image header decoder as args.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
debugging()
Are profiling diagnostics turned on
|
protected void |
getBoxes()
Retrieve the various boxes from the JP2 file.
|
int |
getChannelDefinition(int c)
Return the channel definition of the input component.
|
ColorSpace.CSEnum |
getColorSpace()
Return the colorspace (sYCC, sRGB, sGreyScale).
|
byte[] |
getICCProfile()
Retrieve the ICC profile from the images as
a byte array.
|
ColorSpace.MethodEnum |
getMethod()
Return the colorspace method (Profiled, enumerated, or palettized).
|
PaletteBox |
getPaletteBox()
Return number of channels in the palette.
|
int |
getPaletteChannelBits(int c)
Return bitdepth of the palette entries.
|
int |
getPaletteChannels()
Return number of channels in the palette.
|
int |
getPalettizedSample(int channel,
int index)
Return a palettized sample
|
static String |
indent(String ident,
String instr)
Indent a String that contains newlines.
|
static String |
indent(String ident,
StringBuffer instr)
Indent a String that contains newlines.
|
boolean |
isOutputSigned(int channel)
Signed output predicate.
|
boolean |
isPalettized()
Is palettized predicate.
|
String |
toString()
Return a suitable String representation of the class instance.
|
public static final String eol
public ParameterList pl
public HeaderDecoder hd
public static final ColorSpace.MethodEnum ICC_PROFILED
public static final ColorSpace.MethodEnum ENUMERATED
public static final ColorSpace.CSEnum sRGB
public static final ColorSpace.CSEnum GreyScale
public static final ColorSpace.CSEnum sYCC
public static final ColorSpace.CSEnum Illegal
public static final ColorSpace.CSEnum Unknown
public ColorSpace(RandomAccessIO in, HeaderDecoder hd, ParameterList pl) throws IOException, ColorSpaceException
in - input RandomAccess image file.hd - provides information about the image header.pl - provides parameters from the default and commandline lists.IOException, - ColorSpaceExceptionIOExceptionColorSpaceExceptionpublic byte[] getICCProfile()
public static String indent(String ident, StringBuffer instr)
public static String indent(String ident, String instr)
protected final void getBoxes()
throws ColorSpaceException,
IOException
ColorSpaceException, - IOExceptionColorSpaceExceptionIOExceptionpublic int getChannelDefinition(int c)
public ColorSpace.MethodEnum getMethod()
public ColorSpace.CSEnum getColorSpace()
public PaletteBox getPaletteBox()
public int getPaletteChannels()
public int getPaletteChannelBits(int c)
public int getPalettizedSample(int channel,
int index)
channel - requestedindex - of entrypublic boolean isPalettized()
public boolean isOutputSigned(int channel)
public String toString()
public boolean debugging()
Copyright © 2015. All rights reserved.