public static ImageRaster create(Image image, int slice, int mipMapLevel, boolean convertToLinear) {
        return new DefaultImageRaster(image, slice, mipMapLevel, convertToLinear);
    }
Create new image reader / writer.

@param image The image to read / write to.
@param slice Which slice to use. Only applies to 3D images, 2D image
arrays or cubemaps.
@param mipMapLevel The mipmap level to read / write to. To access levels
other than 0, the image must have
{@link Image#setMipMapSizes(int[]) mipmap sizes} set.
@param convertToLinear If true, the application expects read or written
colors to be in linear color space (<code>ImageRaster</code> will
automatically perform a conversion as needed). If false, the application expects
colors to be in the image's native {@link Image#getColorSpace() color space}.
@return An ImageRaster to read / write to the image.
jme3-core/src/main/java/com/jme3/texture/image/ImageRaster.java