Suppose there is a program, and in it, depending on the condition of a particular one, the color of the image should change. For example, from black to white. I only thought of what would be to programmatically install pre-prepared images, but maybe there is another, less crutch way?

  • Vsmysle, just a black / white square? - Flippy
  • No, not just a square. But the image itself is black / white - Nick
  • I watched the pictures from the resources of the application VC, so, there the filters are implemented with ordinary pictures. I do not know how it works, most likely it is superimposed like a mask on a photo - Flippy

1 answer 1

If the picture is in your ImageView , you can change the color through the setColorFilter method.