foreground_extract


Description:

[ Version ( since = "2.4" ) ]
public bool foreground_extract (ForegroundExtractMode mode, Drawable mask)

Extract the foreground of a drawable using a given trimap.

This procedure extracts the foreground from this using mask as a trimap. Set white as foreground, black as background and uncertain pixels as any other value, for the tri-map.

Parameters:

this

The drawable.

mode

The algorithm to use.

mask

Tri-Map.

Returns:

TRUE on success.