question: BufferedImage createImage ( final int w , final int h , final byte [ ] rgb ) { final BufferedImage image ; byte [ ] imageData = dataToRGBByteArray ( rgb , w , h ) ; image = new BufferedImage ( w , h , BufferedImage . TYPE_INT_RGB ) ; final Raster raster = ColorSpaceConvertor . createInterleavedRaster ( imageData , w , h ) ; image . setData ( raster ) ; return image ; }
target:  turn raw data into an image