1 Reply Latest reply on Jan 5, 2009 6:56 AM by kglad

    Color/Threshold help. Need to autofill empty space. How?

    gunforhire
      I've been developing a glorified drawing tool for a client, and among their New Year amends is that they want to have any 'unattached spaces filled'.
      Essentially what the site does is allow a user to draw, and the lines/curves created are then used to create an inverse mask. So far so good.
      Obviously the user can draw where ever they like, but the client doesn't want them to be able to leave chunks of unfilled space.
      The problem isn't really a code problem. It's more a client aesthetic request!

      I think I need a script that will search through all pixels, and color fill any that are not coloured BUT are surrounded on all sides by color.
      Make sense?

      Can anyone help?