You can apply this effect by playing in different source code.
I suggest you go with this url and check out another effect https://xjaphx.wordpress.com/learning/tutorials/
The most significant function that I could see is mentioned below, try changing it to suit your needs
int width = mImage.getWidth(); int height = mImage.getHeight(); int[] pixels = new int[width * height]; mImage.getPixels(pixels, 0, width, 0, 0, width, height); for(int x = 0; x < pixels.length; ++x) { pixels[x] = (pixels[x] == fromColor) ? targetColor : pixels[x]; } Bitmap newImage = Bitmap.createBitmap(width, height, mImage.getConfig()); newImage.setPixels(pixels, 0, width, 0, 0, width, height); return newImage;
source share