public Raster getData() { return _i.getData(); }
public static BufferedImage getImageFromArray(int[] pixels, int width, int height) { BufferedImage imageBI = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); WritableRaster raster = (WritableRaster) imageBI.getData(); raster.setPixels(0, 0, width, height, pixels); return imageBI; }