Android,使用ScriptIntrinsicBlur需要更多模糊

时间:2014-11-22 17:47:44

标签: android

我使用半径25,虽然它有点模糊,但我正在寻找更多。除了多次运行脚本之外,还有更好的方法可以获得更多模糊吗?

    RenderScript rs = RenderScript.create(this);
    Allocation input = Allocation.createFromBitmap(rs, b, Allocation.MipmapControl.MIPMAP_NONE, Allocation.USAGE_SCRIPT);
    Allocation output = Allocation.createTyped(rs, input.getType());
    ScriptIntrinsicBlur script = ScriptIntrinsicBlur.create(rs, Element.U8_4(rs));
    script.setRadius(radius);
    script.setInput(input);
    script.forEach(output);
    output.copyTo(b);

0 个答案:

没有答案