for (int i=0; i<getSeriesCount(); i++) { core.get(i).thumbSizeX = thumbReader.getSizeX(); core.get(i).thumbSizeY = thumbReader.getSizeY();
for (int i=0; i<getSeriesCount(); i++) { core.get(i).thumbSizeX = thumbReader.getSizeX(); core.get(i).thumbSizeY = thumbReader.getSizeY();
m.sizeX = Math.abs(getSizeX()); if (getSizeY() < 1) { LOGGER.trace("Invalid height: {}; using the absolute value", getSizeY()); m.sizeY = Math.abs(getSizeY()); invertY = true; addGlobalMeta("Indexed color", palette != null); addGlobalMeta("Image width", getSizeX()); addGlobalMeta("Image height", getSizeY()); addGlobalMeta("Bits per pixel", bpp); String comp = "invalid";
m.sizeX = Math.abs(getSizeX()); if (getSizeY() < 1) { LOGGER.trace("Invalid height: {}; using the absolute value", getSizeY()); m.sizeY = Math.abs(getSizeY()); invertY = true; addGlobalMeta("Indexed color", palette != null); addGlobalMeta("Image width", getSizeX()); addGlobalMeta("Image height", getSizeY()); addGlobalMeta("Bits per pixel", bpp); String comp = "invalid";
int rowsToSkip = invertY ? y : getSizeY() - (h + y); int rowLength = (getSizeX() * (isIndexed() ? 1 : getSizeC()) * bpp) / 8; if (planeSize + getSizeY() + in.getFilePointer() <= in.length()) { pad = 1; planeSize += h; boolean endOfFile = false; int index = 0; byte[] plane = new byte[getSizeX() * getSizeY() * getRGBChannelCount()]; while(!endOfFile) { byte firstByte = (byte) (in.readBits(bpp) & 0xff);
int rowsToSkip = invertY ? y : getSizeY() - (h + y); int rowLength = (getSizeX() * (isIndexed() ? 1 : getSizeC()) * bpp) / 8; if (planeSize + getSizeY() + in.getFilePointer() <= in.length()) { pad = 1; planeSize += h; boolean endOfFile = false; int index = 0; byte[] plane = new byte[getSizeX() * getSizeY() * getRGBChannelCount()]; while(!endOfFile) { byte firstByte = (byte) (in.readBits(bpp) & 0xff);