question: public WritableRaster createCompatibleWritableRaster ( int w , int h ) { if ( w <= 0 || h <= 0 ) { throw new RasterFormatException ( "negative " + ( ( w <= 0 ) ? "width" : "height" ) ) ; } SampleModel sm = sampleModel . createCompatibleSampleModel ( w , h ) ; return new ByteInterleavedRaster ( sm , new Point ( 0 , 0 ) ) ; }
target:  Creates a Raster with the same layout but using a different width and height, and with new zeroed data arrays.