public final class PaletteBox extends JP2Box
JP2Box.BoxType| Constructor and Description |
|---|
PaletteBox(RandomAccessIO in,
int boxStart)
Construct a PaletteBox from an input image.
|
| Modifier and Type | Method and Description |
|---|---|
short |
getBitDepth(int column)
Return the bitdepth of palette entries.
|
int |
getEntry(int column,
int entry)
Return an entry for a given index and column.
|
int |
getNumColumns()
Return the number of palette columns.
|
int |
getNumEntries()
Return the number of palette entries.
|
boolean |
isSigned(int column)
Are entries signed predicate.
|
boolean |
isUnSigned(int column)
Are entries unsigned predicate.
|
String |
toString()
Return a suitable String representation of the class instance.
|
getTypeString, getTypeStringpublic PaletteBox(RandomAccessIO in, int boxStart) throws IOException, ColorSpaceException
in - RandomAccessIO jp2 imageboxStart - offset to the start of the box in the imageIOException, - ColorSpaceExceptionIOExceptionColorSpaceExceptionpublic int getNumEntries()
public int getNumColumns()
public boolean isSigned(int column)
public boolean isUnSigned(int column)
public short getBitDepth(int column)
public int getEntry(int column,
int entry)
Copyright © 2015. All rights reserved.