invert


Description:

public static bool invert (Image image)

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).

Parameters:

image

The image.

Returns:

TRUE on success.