Class BitsPerComponentBox
- java.lang.Object
-
- com.sun.media.imageioimpl.plugins.jpeg2000.Box
-
- com.sun.media.imageioimpl.plugins.jpeg2000.BitsPerComponentBox
-
public class BitsPerComponentBox extends Box
This class is defined to represent a Bits Per Component Box of JPEG JP2 file format. A Bits Per Component box has a length, and a fixed type of "bpcc". Its content is a byte array containing the bit depths of the color components. This box is necessary only when the bit depth are not identical for all the components.
-
-
Field Summary
-
Fields inherited from class com.sun.media.imageioimpl.plugins.jpeg2000.Box
data, extraLength, length, type
-
-
Constructor Summary
Constructors Constructor Description BitsPerComponentBox(byte[] bitDepth)
Counstructs aBitsPerComponentBox
from the provided byte array containing the bit depths of each color component.BitsPerComponentBox(Node node)
Constructs aBitsPerComponentBox
based on the provideorg.w3c.dom.Node
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBitDepth()
Returns the bit depths for all the image components.-
Methods inherited from class com.sun.media.imageioimpl.plugins.jpeg2000.Box
compose, copyInt, createBox, getAttribute, getBoxClass, getByteArrayElementValue, getByteElementValue, getContent, getExtraLength, getIntArrayElementValue, getIntElementValue, getLength, getName, getNativeNode, getNativeNodeForSimpleBox, getShortElementValue, getStringElementValue, getType, getTypeByName, getTypeInt, getTypeString, parse, parseByteArray, parseIntArray, read, setContent, setDefaultAttributes, setExtraLength, setLength, write
-
-
-
-
Constructor Detail
-
BitsPerComponentBox
public BitsPerComponentBox(byte[] bitDepth)
Counstructs aBitsPerComponentBox
from the provided byte array containing the bit depths of each color component.
-
BitsPerComponentBox
public BitsPerComponentBox(Node node) throws IIOInvalidTreeException
Constructs aBitsPerComponentBox
based on the provideorg.w3c.dom.Node
.- Throws:
IIOInvalidTreeException
-
-