public class ResolutionBox extends Box
data, extraLength, length, type
Constructor and Description |
---|
ResolutionBox(int type,
byte[] data)
Constructs a
ResolutionBox from the provided type and
content data array. |
ResolutionBox(int type,
float hRes,
float vRes)
Constructs a
ResolutionBox from the provided type and
horizontal/vertical resolutions. |
ResolutionBox(Node node)
Constructs a
ResolutionBox based on the provided
org.w3c.dom.Node . |
Modifier and Type | Method and Description |
---|---|
protected void |
compose()
Composes the content byte array from the data elements.
|
float |
getHorizontalResolution()
Return the horizontal resolution.
|
IIOMetadataNode |
getNativeNode()
Creates an
IIOMetadataNode from this resolution
box. |
float |
getVerticalResolution()
Return the vertical resolution.
|
protected void |
parse(byte[] data)
Parse the data elements from the provided content data array.
|
copyInt, createBox, getAttribute, getBoxClass, getByteArrayElementValue, getByteElementValue, getContent, getExtraLength, getIntArrayElementValue, getIntElementValue, getLength, getName, getNativeNodeForSimpleBox, getShortElementValue, getStringElementValue, getType, getTypeByName, getTypeInt, getTypeString, parseByteArray, parseIntArray, read, setContent, setDefaultAttributes, setExtraLength, setLength, write
public ResolutionBox(int type, byte[] data)
ResolutionBox
from the provided type and
content data array.public ResolutionBox(int type, float hRes, float vRes)
ResolutionBox
from the provided type and
horizontal/vertical resolutions.public ResolutionBox(Node node) throws IIOInvalidTreeException
ResolutionBox
based on the provided
org.w3c.dom.Node
.IIOInvalidTreeException
public float getHorizontalResolution()
public float getVerticalResolution()
protected void parse(byte[] data)
public IIOMetadataNode getNativeNode()
IIOMetadataNode
from this resolution
box. The format of this node is defined in the XML dtd and xsd
for the JP2 image file.getNativeNode
in class Box
Copyright © 2014 Open Microscopy Environment