Package javax.media.jai

Examples of javax.media.jai.RenderedOp.dispose()


                    }
                }
            }
        }
        // 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
View Full Code Here


                    }
                }
            }
        }
        // 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);
View Full Code Here

                    // 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) {
View Full Code Here

            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);
            }
        }
View Full Code Here

        throw new IllegalArgumentException(t.getMessage());
      }
    } finally {
      IOUtils.closeQuietly(seekableInputStream);
      if (image != null)
        image.dispose();
    }
  }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.