Class BitsPerComponentBox
java.lang.Object
com.sun.media.imageioimpl.plugins.jpeg2000.Box
com.sun.media.imageioimpl.plugins.jpeg2000.BitsPerComponentBox
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
ConstructorsConstructorDescriptionBitsPerComponentBox(byte[] bitDepth) Counstructs aBitsPerComponentBoxfrom the provided byte array containing the bit depths of each color component.BitsPerComponentBox(Node node) Constructs aBitsPerComponentBoxbased on the provideorg.w3c.dom.Node. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]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 Details
-
BitsPerComponentBox
public BitsPerComponentBox(byte[] bitDepth) Counstructs aBitsPerComponentBoxfrom the provided byte array containing the bit depths of each color component. -
BitsPerComponentBox
Constructs aBitsPerComponentBoxbased on the provideorg.w3c.dom.Node.- Throws:
IIOInvalidTreeException
-
-
Method Details
-
getBitDepth
public byte[] getBitDepth()Returns the bit depths for all the image components.
-