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.