@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); }
int pixelType = getPixelType(); int pixel = getRGBChannelCount() * FormatTools.getBytesPerPixel(pixelType); int outputRowLen = w * pixel;
int pixelType = getPixelType(); int pixel = getRGBChannelCount() * FormatTools.getBytesPerPixel(pixelType); int outputRowLen = w * pixel;