| java.lang.Object com.sun.media.imageioimpl.plugins.jpeg2000.Box com.sun.media.imageioimpl.plugins.jpeg2000.PaletteBox
PaletteBox | public class PaletteBox extends Box (Code) | | This class is designed to represent a palette box for JPEG 2000 JP2 file
format. A palette box has a length, and a fixed type of "pclr".
Its content contains the number of palette entry, the number of color
components, the bit depths of the output components, the LUT.
Currently, only 8-bit color index is supported.
|
Constructor Summary | |
public | PaletteBox(IndexColorModel icm) Constructs a PlatteBox from an
IndexColorModel . | public | PaletteBox(Node node) Constructs a PlatteBox from an
org.w3c.dom.Node . | public | PaletteBox(int length, byte[] comp, byte[][] lut) Constructs a PlatteBox from the provided length, bit
depths of the color components and the LUT. | public | PaletteBox(byte[] data) Constructs a PlatteBox from the provided byte array. |
PaletteBox | public PaletteBox(int length, byte[] comp, byte[][] lut)(Code) | | Constructs a PlatteBox from the provided length, bit
depths of the color components and the LUT.
|
PaletteBox | public PaletteBox(byte[] data)(Code) | | Constructs a PlatteBox from the provided byte array.
|
compose | protected void compose()(Code) | | |
getBitDepths | public byte[] getBitDepths()(Code) | | Return the bit depths for all the color components.
|
getLUT | public byte[][] getLUT()(Code) | | Return the LUT.
|
getNativeNode | public IIOMetadataNode getNativeNode()(Code) | | creates an IIOMetadataNode from this palette box.
The format of this node is defined in the XML dtd and xsd
for the JP2 image file.
|
getNumComp | public int getNumComp()(Code) | | Return the number of color components.
|
getNumEntries | public int getNumEntries()(Code) | | Return the number of palette entries.
|
parse | protected void parse(byte[] data)(Code) | | |
|
|