•  
  •  
  •  
 

Magic Wand with Support.GetColormatchedMask

Last post 21 Sep 2008, 7:13 AM by Glenn. 1 replies.
Sort Posts: Previous Next
  •  18 Sep 2008, 1:03 PM 15698

    Magic Wand with Support.GetColormatchedMask

    I've read in ImgXAsp help file (same information at: http://www.atalasoft.com/products/imgxasp/docs/ImgXASP6~ImgX_Support~GetColormatchedMask.html) that Support.GetColormatchedMask can be used to do a "magic wand" selection, but I cannot find any example of this use... How should it be done?

     Thanks in advance.

    Andrea.

     

  •  21 Sep 2008, 7:13 AM 15751 in reply to 15698

    Re: Magic Wand with Support.GetColormatchedMask

    GetColormatchedMask performs the same as FloodFill but instead of modifying the image it returns a mask image showing what area would have been filled.  You can then use that mask with Channels.SetAlphaFromMask to erase the 'selected' area of the image.  Or to keep that area and erase all around it you can use Filters.Negative on the mask before calling SetAlphaFromMask.

View as RSS news feed in XML