Code example for ScriptIntrinsicBlur

Methods: setRadius

0
        mRadius = ((float)progress) / 100.0f * MAX_RADIUS;
        if (mRadius <= 0.10f) {
            mRadius = 0.10f;
        } 
        if (mUseIntrinsic) {
            mIntrinsic.setRadius(mRadius);
        } else { 
            mScript.invoke_setRadius((int)mRadius);
        } 
    } 
 
 
    public void createTest(android.content.res.Resources res) {
        int width = mInPixelsAllocation.getType().getX();
        int height = mInPixelsAllocation.getType().getY();
 
        if (mUseIntrinsic) {
            mIntrinsic = ScriptIntrinsicBlur.create(mRS, Element.U8_4(mRS));
            mIntrinsic.setRadius(MAX_RADIUS);
            mIntrinsic.setInput(mInPixelsAllocation);
Connect your IDE to all the code out there  Get Codota for Java