# floodFill problem

**URL:** https://forum.kirupa.com/t/floodfill-problem/222008
**Category:** flash
**Created:** [April 10, 2007, 4:51am UTC](https://forum.kirupa.com/t/floodfill-problem/222008 "2007-04-10T04:51:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jav](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@Jav](https://forum.kirupa.com/u/Jav)
#### Post date: [April 10, 2007, 4:51am UTC](https://forum.kirupa.com/t/floodfill-problem/222008/1 "2007-04-10T04:51:34Z")

</div>

Im working on a paint game in flash that would perform the same sort of tasks as you would expect from something like paint. But here is where my problem is. I have my game draw lines using lineto, and when the line is finished it converts the lines from vector to bitmap using bitmapData.draw. That works, fine. What i have a problem with is when i try using the fill tool (which is just using floodFill on the bitmapData) i get edges to my lines. These edges are the result of flash making the lines into bitmaps and having some pixels as partly alpha to resemble a smooth line. I have tried a range of things such as color transforms and threshold, but no matter what i still get the edges. Can someone help me please.
