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.
  • Constructor Details

    • BitsPerComponentBox

      public BitsPerComponentBox(byte[] bitDepth)
      Counstructs a BitsPerComponentBox from the provided byte array containing the bit depths of each color component.
    • BitsPerComponentBox

      public BitsPerComponentBox(Node node) throws IIOInvalidTreeException
      Constructs a BitsPerComponentBox based on the provide org.w3c.dom.Node.
      Throws:
      IIOInvalidTreeException
  • Method Details

    • getBitDepth

      public byte[] getBitDepth()
      Returns the bit depths for all the image components.