title: Any way to fill an image surface with a color? (Canvas)
body: <p>I've searching a way to fill an image surface with a color with canvas but didn't find what i'm looking for.</p>
  
  <p>Is there actually any way to do it?</p>
  
  <p>There is an example of what i'm talking about:</p>
  
  <p>If the image is like this:</p>
  
  <p><a href="https://i.stack.imgur.com/kv435.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kv435.png" alt="enter image description here"></a></p>
  
  <p>I would need to paint this with canvas:</p>
  
  <p><a href="https://i.stack.imgur.com/dAiYe.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dAiYe.png" alt="enter image description here"></a></p>
  
  <p>Just fill the actual image surface with a color (black in this case).</p>
  
  <p>I think this Android method does the same, so I hope there is something similar on canvas.</p>
  
  <pre><code>imageView.setColorFilter(Color.RED);
  </code></pre>
  
  <p>Thank you in advance.</p>