Sample code for a tutorial (http://howrobotswork.wordpress.com/2014/04/28/how-to-dim-bitmaps-with-renderscript/)