/** Obtains the specified image from the current file. */ public BufferedImage openImage(int no) throws FormatException, IOException { return openImage(no, 0, 0, getSizeX(), getSizeY()); }
/** Obtains the specified image from the current file. */ public BufferedImage openImage(int no) throws FormatException, IOException { return openImage(no, 0, 0, getSizeX(), getSizeY()); }
@Override public Object getObject(int index) throws CacheException { BufferedImage bi = null; try { bi = reader.openImage(index); } catch (FormatException exc) { throw new CacheException(exc); } catch (IOException exc) { throw new CacheException(exc); } return bi; }
@Override public Object getObject(int index) throws CacheException { BufferedImage bi = null; try { bi = reader.openImage(index); } catch (FormatException exc) { throw new CacheException(exc); } catch (IOException exc) { throw new CacheException(exc); } return bi; }
int ndx = swap.getIndex(zPos, cPos, tPos); BufferedImage img = biReader.openImage(ndx); writer.setId(out); if (force && !writer.isSupportedType(swap.getPixelType())) {
int ndx = swap.getIndex(zPos, cPos, tPos); BufferedImage img = biReader.openImage(ndx); writer.setId(out); if (force && !writer.isSupportedType(swap.getPixelType())) {
/** Obtains a thumbnail for the specified image from the current file. */ public BufferedImage openThumbImage(int no) throws FormatException, IOException { Class dataType = getNativeDataType(); if (BufferedImage.class.isAssignableFrom(dataType)) { BufferedImage img = AWTImageTools.makeUnsigned(openImage(no)); return AWTImageTools.scale(img, getThumbSizeX(), getThumbSizeY(), false); } byte[] thumbBytes = openThumbBytes(no); return AWTImageTools.openImage(thumbBytes, this, getThumbSizeX(), getThumbSizeY()); }
/** Obtains a thumbnail for the specified image from the current file. */ public BufferedImage openThumbImage(int no) throws FormatException, IOException { Class dataType = getNativeDataType(); if (BufferedImage.class.isAssignableFrom(dataType)) { BufferedImage img = AWTImageTools.makeUnsigned(openImage(no)); return AWTImageTools.scale(img, getThumbSizeX(), getThumbSizeY(), false); } byte[] thumbBytes = openThumbBytes(no); return AWTImageTools.openImage(thumbBytes, this, getThumbSizeX(), getThumbSizeY()); }
if (!fastBlit) { images[i - start] = thumbs ? biReader.openThumbImage(i) : biReader.openImage(i, xCoordinate, yCoordinate, width, height);
if (num > 3) num = 3; // test first three image planes only, for speed for (int j=0; j<num && success; j++) { b = reader.openImage(j);
for (int i=0; i<num; i++) { if (progress.isCanceled()) break; img[i] = myReader.openImage(i); if (i == 0) setImages(myReader, img); progress.setProgress(i + 2);
for (int i=0; i<num; i++) { if (progress.isCanceled()) break; img[i] = myReader.openImage(i); if (i == 0) setImages(myReader, img); progress.setProgress(i + 2);