@Override public int getOptimalTileHeight() { if (maxResolution > 0 && getCoreIndex() < core.size() - extraImages.size()) { return (int) Math.min(1024, getSizeY()); } if (tileHeight != null && getCoreIndex() < tileHeight.length) { int height = tileHeight[getCoreIndex()]; if (height == 0 && getCoreIndex() > 0) { height = tileHeight[getCoreIndex() - 1] / 2; } return height == 0 ? 1024 : height; } return super.getOptimalTileHeight(); }
@Override public int getOptimalTileWidth() { if (maxResolution > 0 && getCoreIndex() < core.size() - extraImages.size()) { return (int) Math.min(1024, getSizeX()); } if (tileWidth != null && getCoreIndex() < tileWidth.length) { int width = tileWidth[getCoreIndex()]; if (width == 0 && getCoreIndex() > 0) { width = tileWidth[getCoreIndex() - 1] / 2; } return width == 0 ? 1024 : width; } return super.getOptimalTileWidth(); }
@Override public int getOptimalTileWidth() { if (maxResolution > 0 && getCoreIndex() < core.size() - extraImages.size()) { return (int) Math.min(1024, getSizeX()); } if (tileWidth != null && getCoreIndex() < tileWidth.length) { int width = tileWidth[getCoreIndex()]; if (width == 0 && getCoreIndex() > 0) { width = tileWidth[getCoreIndex() - 1] / 2; } return width == 0 ? 1024 : width; } return super.getOptimalTileWidth(); }
@Override public int getOptimalTileHeight() { if (maxResolution > 0 && getCoreIndex() < core.size() - extraImages.size()) { return (int) Math.min(1024, getSizeY()); } if (tileHeight != null && getCoreIndex() < tileHeight.length) { int height = tileHeight[getCoreIndex()]; if (height == 0 && getCoreIndex() > 0) { height = tileHeight[getCoreIndex() - 1] / 2; } return height == 0 ? 1024 : height; } return super.getOptimalTileHeight(); }
private void calculateDimensions(int coreIndex, boolean xyOnly) { int previousCoreIndex = getCoreIndex(); setCoreIndex(coreIndex);
private void calculateDimensions(int coreIndex, boolean xyOnly) { int previousCoreIndex = getCoreIndex(); setCoreIndex(coreIndex);
int index = getCoreIndex() - (core.size() - extraImages.size()); byte[] fullPlane = extraImages.get(index).attachmentData; RandomAccessInputStream s = new RandomAccessInputStream(fullPlane); int currentIndex = getCoreIndex();
int index = getCoreIndex() - (core.size() - extraImages.size()); byte[] fullPlane = extraImages.get(index).attachmentData; RandomAccessInputStream s = new RandomAccessInputStream(fullPlane); int currentIndex = getCoreIndex();