@Override public byte[] openBytes(int no) throws FormatException, IOException { return openBytes(no, 0, 0, getSizeX(), getSizeY()); }
@Override public byte[] openBytes(int no, byte[] buf) throws FormatException, IOException { return openBytes(no , buf, 0, 0, getSizeX(), getSizeY()); }
@Override public byte[] openBytes(int no, byte[] buf) throws FormatException, IOException { return openBytes(no , buf, 0, 0, getSizeX(), getSizeY()); }
@Override public byte[] openBytes(int no) throws FormatException, IOException { return openBytes(no, 0, 0, getSizeX(), getSizeY()); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { int bpp = FormatTools.getBytesPerPixel(getPixelType()); int ch = getRGBChannelCount(); byte[] newBuffer = DataTools.allocate(w, h, ch, bpp); return openBytes(no, newBuffer, x, y, w, h); }
@Override public byte[] openBytes(int no, int x, int y, int w, int h) throws FormatException, IOException { int bpp = FormatTools.getBytesPerPixel(getPixelType()); int ch = getRGBChannelCount(); byte[] newBuffer = DataTools.allocate(w, h, ch, bpp); return openBytes(no, newBuffer, x, y, w, h); }