Tutorial by Examples

RenderScript is a framework to allow high performance parallel computation on Android. Scripts you write will be executed across all available processors (e.g. CPU, GPU etc) in parallel allowing you to focus on the task you want to achieve instead of how it is scheduled and executed. Scripts are wr...
This example demonstrates how to use Renderscript API to blur an image (using Bitmap). This example uses ScriptInstrinsicBlur provided by android Renderscript API (API >= 17). public class BlurProcessor { private RenderScript rs; private Allocation inAllocation; private Allo...
BlurBitmapTask.java public class BlurBitmapTask extends AsyncTask<Bitmap, Void, Bitmap> { private final WeakReference<ImageView> imageViewReference; private final RenderScript renderScript; private boolean shouldRecycleSource = false; public BlurBitmapTask(@NonNu...

Page 1 of 1