# Paint Bucket in inkcanvas

**URL:** <https://forum.kirupa.com/t/paint-bucket-in-inkcanvas/295828>\
**Category:** programming\
**Created:** [September 5, 2009, 8:50am UTC](https://forum.kirupa.com/t/paint-bucket-in-inkcanvas/295828 "2009-09-05T08:50:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexprvn](https://avatars.discourse-cdn.com/v4/letter/a/d6d6ee/32.png) [@alexprvn](https://forum.kirupa.com/u/alexprvn)\
**Post date:** [September 5, 2009, 8:50am UTC](https://forum.kirupa.com/t/paint-bucket-in-inkcanvas/295828/1 "2009-09-05T08:50:04Z")

</div>

Hai…

Sample:

```
&lt;InkCanvas x:Name="inker" Margin="-8,94,8,8"&gt;
        &lt;Image x:Name="img" Margin="-196.794,0,-1206.111,-1489.523" Height="1374.139" Source="311.JPG"/&gt;
    &lt;/InkCanvas&gt;

```

in this above code i have kept image inside inkcanvas.  
this is how my application goes…  
where we can paint that image placed in it.  
Please help me how to fill a particular bounded area like a paint bucket in MSPAINT or in any other application.

example: for a mickey mouse image filling it’s ear with black color instead of brushing…
