/** * Creates a new raster that has a <b>copy</b> of the data in * <code>ras</code>. This is highly optimized for speed. There is * no provision for changing any aspect of the SampleModel. * * This method should be used when you need to change the contents * of a Raster that you do not "own" (ie the result of a * <code>getData</code> call). * @param ras The Raster to copy. * @return A writable copy of <code>ras</code> */ public static WritableRaster copyRaster(Raster ras) { return copyRaster(ras, ras.getMinX(), ras.getMinY()); }
/** * Creates a new raster that has a <b>copy</b> of the data in * <code>ras</code>. This is highly optimized for speed. There is * no provision for changing any aspect of the SampleModel. * * This method should be used when you need to change the contents * of a Raster that you do not "own" (ie the result of a * <code>getData</code> call). * @param ras The Raster to copy. * @return A writable copy of <code>ras</code> */ public static WritableRaster copyRaster(Raster ras) { return copyRaster(ras, ras.getMinX(), ras.getMinY()); }
/** * Creates a new raster that has a <b>copy</b> of the data in * <code>ras</code>. This is highly optimized for speed. There is * no provision for changing any aspect of the SampleModel. * * This method should be used when you need to change the contents * of a Raster that you do not "own" (ie the result of a * <code>getData</code> call). * @param ras The Raster to copy. * @return A writable copy of <code>ras</code> */ public static WritableRaster copyRaster(Raster ras) { return copyRaster(ras, ras.getMinX(), ras.getMinY()); }