public static Image makeRaster()

in shared/java/Image.java [38:54]


    public static Image makeRaster(ImageInfo imageInfo, byte[] bytes, long rowBytes) {
        try {
            Stats.onNativeCall();
            long ptr = _nMakeRaster(imageInfo._width,
                                    imageInfo._height,
                                    imageInfo._colorInfo._colorType.ordinal(),
                                    imageInfo._colorInfo._alphaType.ordinal(),
                                    Native.getPtr(imageInfo._colorInfo._colorSpace),
                                    bytes,
                                    rowBytes);
            if (ptr == 0)
                throw new RuntimeException("Failed to makeRaster " + imageInfo + " " + bytes + " " + rowBytes);
            return new Image(ptr);
        } finally {
            Reference.reachabilityFence(imageInfo._colorInfo._colorSpace);
        }
    }