title: How to paint using brush with particular area...
body: <p><img src="https://i.stack.imgur.com/c0RmZ.png" alt="enter image description here"></p>
  
  <p>I want to fill each and every part with different colours like circle with other colour and each leave with different colour and stick with different colours. I have bunch of colours. You can fidn similar apps like Toonia Color book on apple app store...</p>
  
  <p>I am unable to get bounds of particular part in image.</p>
  
  <p>I searched a whole day before writing this question. Every one is saying just look for flood fill and Quick Fill algorithms but i am not able to solve this problem.</p>