If theImage is non-null, then this call is first forwarded to theImage.dispose(). Subsequent to this super.dispose() is invoked.
theImage
null
theImage.dispose()
super.dispose()
The results of referencing an image after a call to dispose() are undefined.
dispose()
434435436437438439440441442443444
} } } } // Disposal of the output image merged.dispose(); } // This method is similar to the testBandMerge method but it tests the ExtendedBandMergeOpImage class private void testExtendedBandMerge(RenderedImage[] sources, boolean noDataUsed, boolean roiUsed) { // Optional No Data Range used
646647648649650651652653654655656
} } } } // Disposal of the output image merged.dispose(); } /** Returns the "round" value of a float. */ private static int round(double f) { return f >= 0 ? (int) (f + 0.5F) : (int) (f - 0.5F);
29292930293129322933293429352936293729382939
// compute the target bbox the same way the affine would have to have a 1-1 match RenderedOp at = AffineDescriptor.create(source, tx, interpolation, bgValues, commonHints); Rectangle targetBB = at.getBounds(); at.dispose(); Rectangle sourceBB = (Rectangle) sourceBoundsProperty; // warp Rectangle mappingBB; if (source.getProperty("ROI") instanceof ROI) {
167168169170171172173174175176177
log.error("Error while loading image (JAI): " + ex.getMessage(), ex); } finally { IOUtils.closeQuietly(inputStream); inputStream = null; if (imageOp != null) { imageOp.dispose(); } if (seekableInput != null) { IOUtils.closeQuietly(seekableInput); } }
308309310311312313314315316317
throw new IllegalArgumentException(t.getMessage()); } } finally { IOUtils.closeQuietly(seekableInputStream); if (image != null) image.dispose(); } } }