Get a vignette effect by shaders
问题 Im trying to create a vignette effect for my app. I've been searching a lot for help achieving this but was unable to find anything. I recently found this tutorial. And i tried to implement it in my app with this code: public int[] drawBitmap(Bitmap originalBitmap){ Bitmap mask; Paint paint = new Paint(); mask = convertToAlphaMask(BitmapFactory.decodeResource(context.getResources(), R.drawable.spot_mask)); Shader shader = createShader(mask); paint.setShader(shader); Bitmap tempBit = Bitmap