throw new ImagingOpException( "BufferedImageOp [" + op.toString()
/** * {@inheritDoc }. * @throws java.lang.IllegalArgumentException if TileCache is in memoryMode only and the * requested raster is not found on cache. * @throws java.lang.RuntimeException if raster can't be retrieve from cache (nested IOException). */ @Override public Raster getTile(RenderedImage ri, int tileX, int tileY) { final ImageTilesCache cache; synchronized(tileManagers){ cache = tileManagers.get(ri); } if (cache == null){ throw new IllegalArgumentException("renderedImage doesn't exist in this "+LargeCache.class.getName()); } try { return cache.getRaster(tileX, tileY); } catch (IOException ex) { throw (RuntimeException)(new ImagingOpException(ex.getMessage()).initCause(ex)); } }
/** * Saves the current image as a PNG image in the given file. This is sometime useful for visual * check purpose, and is used only as a helper tools for tuning the test suites. Floating-point * images are converted to grayscale before to be saved. * * @param filename the name (optionally with its path) of the file to create. * @throws ImagingOpException if an error occurred while writing the file. */ protected final synchronized void saveCurrentImage(final String filename) throws ImagingOpException { try { savePNG(image, new File(filename)); } catch (IOException e) { throw new ImagingOpException(e.toString()); } }
/** * Saves the current image as a PNG image in the given file. This is sometime useful for visual * check purpose, and is used only as a helper tools for tuning the test suites. Floating-point * images are converted to grayscale before to be saved. * * @param filename The name (optionally with its path) of the file to create. * @throws ImagingOpException If an error occurred while writing the file. * * @since 3.19 */ protected final synchronized void saveCurrentImage(final String filename) throws ImagingOpException { try { savePNG(image, new File(filename)); } catch (IOException e) { throw new ImagingOpException(e.toString()); } }
throw new ImagingOpException( "BufferedImageOp [" + op.toString()
throw new ImagingOpException( "BufferedImageOp [" + op.toString()
throw new ImagingOpException("Could not clone unknown ColorModel Type.");
throw new ImagingOpException("Could not clone unknown ColorModel Type.");