You could try looking up the "inside test" for polygons... you can use that to check what is inside a polygon... or look up flood-fill algorithms if you are trying a freehand pixel-based selection, as those algorithms select pixels to paint within a region which you can adapt to make a selection. I haven't tried any of this but it's what I can think of, hope it helps Nick H Scott Harper wrote: >Okay, this isn't necessarily game-related -- but I want to know how to >create a free-select tool (the "lasso" tool from >Photoshop/GIMP/etc...). I've looked all over the internet, but all I >seem to come up with are links to USING these tools, not PROGRAMMING >them... > >Thanks for any help you can offer. > >--Ben > >--------------------- >To unsubscribe go to http://gameprogrammer.com/mailinglist.html > > --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html