invert


Description:

[ Version ( deprecated = true , deprecated_since = "3.2" , since = "2.10" ) ]
public bool invert (bool linear)

Warning: invert is deprecated since 3.2.

Invert the contents of the specified drawable.

Note:

Use filters "gegl:invert-linear" or "gegl:invert-gamma" instead.

This procedure inverts the contents of the specified drawable. Each intensity channel is inverted independently. The inverted intensity is given as inten' = (255 - inten). If 'linear' is TRUE, the drawable is inverted in linear space.

Parameters:

this

The drawable.

linear

Whether to invert in linear space.

Returns:

TRUE on success.