Search in sources :

Example 1 with ResolutionBox

use of com.sun.media.imageioimpl.plugins.jpeg2000.ResolutionBox in project bioformats by openmicroscopy.

the class FileFormatReader method readResolutionBox.

/**
 * Read the resolution.
 */
public void readResolutionBox(int type, int length) throws IOException {
    byte[] data = new byte[length];
    in.readFully(data, 0, length);
    if (metadata != null) {
        metadata.addNode(new ResolutionBox(type, data));
    }
}
Also used : ResolutionBox(com.sun.media.imageioimpl.plugins.jpeg2000.ResolutionBox)

Example 2 with ResolutionBox

use of com.sun.media.imageioimpl.plugins.jpeg2000.ResolutionBox in project bioformats by ome.

the class FileFormatReader method readResolutionBox.

/**
 * Read the resolution.
 */
public void readResolutionBox(int type, int length) throws IOException {
    byte[] data = new byte[length];
    in.readFully(data, 0, length);
    if (metadata != null) {
        metadata.addNode(new ResolutionBox(type, data));
    }
}
Also used : ResolutionBox(com.sun.media.imageioimpl.plugins.jpeg2000.ResolutionBox)

Aggregations

ResolutionBox (com.sun.media.imageioimpl.plugins.jpeg2000.ResolutionBox)2