public static Image makeRaster()

in shared/java/Image.java [73:90]


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