/** * Returns an array of tile <code>Raster</code>s from the cache. * Any or all of the elements of the returned array may be * <code>null</code> if the corresponding tile is not in the cache. * The length of the returned array must be the same as that of the * parameter array and the <i>i</i>th <code>Raster</code> in the * returned array must correspond to the <i>i</i>th tile index in * the parameter array. * * @param owner The <code>RenderedImage</code> that the tile belongs to. * @param tileIndices An array of <code>Point</code>s containing the * <code>tileX</code> and <code>tileY</code> indices for each tile. * @since JAI 1.1 */ public Raster[] getTiles(RenderedImage owner, Point[] tileIndices) { Raster[] tiles = new Raster[tileIndices.length]; for (int i = 0; i < tiles.length; i++) { Point tileIndex = tileIndices[i]; tiles[i] = getTile(owner, tileIndex.x, tileIndex.y); } return tiles; }