@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { return super.openBytes(reorder(no), x, y, w, h); }
@Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { return super.openBytes(reorder(no), buf, x, y, w, h); }
@Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { return getHelper().openBytes(no, buf, x, y, w, h); }
@Override public byte[] openBytes(int no, byte[] buf) throws FormatException, IOException { return super.openBytes(reorder(no), buf); }
@Override public byte[] openBytes(int no, byte[] buf) throws FormatException, IOException { return getHelper().openBytes(no, buf); }
@Override public byte[] openBytes(int no, byte[] buf) throws FormatException, IOException { return super.openBytes(reorder(no), buf); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { return getHelper().openBytes(no, x, y, w, h); }
@Override public byte[] openBytes(int no) throws FormatException, IOException { return getHelper().openBytes(no); }
@Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { return super.openBytes(reorder(no), buf, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { return getHelper().openBytes(no, x, y, w, h); }
@Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { return getHelper().openBytes(no, buf, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { return super.openBytes(reorder(no), x, y, w, h); }
@Override public byte[] openBytes(int no, byte[] buf) throws FormatException, IOException { return getHelper().openBytes(no, buf); }
@Override public byte[] openBytes(int no) throws FormatException, IOException { return super.openBytes(reorder(no)); }
@Override public byte[] openBytes(int no) throws FormatException, IOException { return super.openBytes(reorder(no)); }
@Override public byte[] openBytes(int no) throws FormatException, IOException { return getHelper().openBytes(no); }
@Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); super.openBytes(no, buf, x, y, w, h); updateMinMax(no, buf, FormatTools.getBytesPerPixel(getPixelType()) * w * h); return buf; }
@Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); super.openBytes(no, buf, x, y, w, h); updateMinMax(no, buf, FormatTools.getBytesPerPixel(getPixelType()) * w * h); return buf; }
@Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); if (!canMerge()) return super.openBytes(no, buf, x, y, w, h); int sizeC = getSizeC(); int[] nos = getZCTCoords(no); int z = nos[0], t = nos[2]; for (int c=0; c<sizeC; c++) { byte[] b = reader.openBytes(reader.getIndex(z, c, t), x, y, w, h); System.arraycopy(b, 0, buf, c * b.length, b.length); } return buf; }
@Override public byte[] openBytes(int no, byte[] buf, int x, int y, int w, int h) throws FormatException, IOException { FormatTools.assertId(getCurrentFile(), true, 2); if (!canMerge()) return super.openBytes(no, buf, x, y, w, h); int sizeC = getSizeC(); int[] nos = getZCTCoords(no); int z = nos[0], t = nos[2]; for (int c=0; c<sizeC; c++) { byte[] b = reader.openBytes(reader.getIndex(z, c, t), x, y, w, h); System.arraycopy(b, 0, buf, c * b.length, b.length); } return buf; }