title: How to crop color portion from image canvas?
body: <p>I am working on ionic based application.</p>
  
  <p>I want to functionality like user has Filled the red color on image(canvas) with finger. So I have done the filled functionality but I want to crop the Filled portion from canvas. I have attached one image for reference.</p>
  
  <p><a href="https://i.stack.imgur.com/GTzNH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GTzNH.jpg" alt="enter image description here"></a></p>
  
  <p>I want to crop red portion from above image. I has googling but not found any solution.</p>