We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In WorkerUtils.kt fun blurBitmap Change code
rsContext = RenderScript.create(applicationContext, RenderScript.ContextType.DEBUG) val inAlloc = Allocation.createFromBitmap(rsContext, bitmap) val outAlloc = Allocation.createTyped(rsContext, inAlloc.type) val theIntrinsic = ScriptIntrinsicBlur.create(rsContext, Element.U8_4(rsContext)) theIntrinsic.apply { setRadius(10f) theIntrinsic.setInput(inAlloc) theIntrinsic.forEach(outAlloc) } outAlloc.copyTo(output)
to
var blurredBitmap: Bitmap? = Toolkit.blur(bitmap,25) return blurredBitmap!!
Instruction to migrate https://developer.android.com/guide/topics/renderscript/migrate
You just need to download the project, get the renderscript-toolkit module and add it to this Codelab project. https://github.com/android/renderscript-intrinsics-replacement-toolkit
The text was updated successfully, but these errors were encountered:
Instructions say: "Add the library to your Android Studio project by modifying the app's build.gradle file."
Modify how? Add a dependency? What should it say?
Sorry, something went wrong.
No branches or pull requests
In WorkerUtils.kt fun blurBitmap
Change code
to
Instruction to migrate
https://developer.android.com/guide/topics/renderscript/migrate
You just need to download the project, get the renderscript-toolkit module and add it to this Codelab project.
https://github.com/android/renderscript-intrinsics-replacement-toolkit
The text was updated successfully, but these errors were encountered: