static extern bool gimp_drawable_foreground_extract(Int32 drawable_ID, ForegroundExtractMode mode, Int32 mask_ID);
public void ForegroundExtract(ForegroundExtractMode mode, Mask mask) { if (!gimp_drawable_foreground_extract(ID, mode, mask.ID)) { throw new GimpSharpException(); } }