Computes the mask of the surface.
threshold |
value defining the minimum opacity [0.0 .. 1.0] |
extent |
bounding box of the found mask |
a new surface containing the mask |