No, I still used getColourBoundsRect. It works OK until you get more than one object of the same colour - then you end up getting big rectangles which span the distance between the two, which is bad. You could *probably* get around this with some kind of quadtree-type algorithm, it's something I've been meaning to look into, and will probably be going back to soon. (As soon as I get five spare minutes...)
Also - Grant Skinner claims to have solved the problem, but AFAIK, he's only posted videos, not working examples, so I don't know what approach he used. A On 12/09/06, Serge Jespers <[EMAIL PROTECTED]> wrote:
Interesting... So you didn't use getColorBoundsRect? Did you 'walk through' all pixels then? Or how exactly do you search for the color? Serge > Yeah, I've done some work with it. > > The trick is to apply some contrast filters to reduce the colour > depth, and > be a bit more picky about getting your source colour. You can do the > getColourBoundsRect thing, but it's still pretty inaccurate though. > > Alias _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com