Gimp.Selection.invert

function invert(image: Gimp.Image): Boolean {
    // Gjs wrapper for gimp_selection_invert()
}
  

Invert the selection mask.

This procedure inverts the selection mask. For every pixel in the selection channel, its new value is calculated as (255 - old-value).

image

The image.

Returns

TRUE on success.