我使用半径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);