### Method

# Gimp Drawable invert

deprecated: 3.2 since: 2.10

#### Declaration [src]

    gboolean
    gimp_drawable_invert (
      GimpDrawable* drawable,
      gboolean linear
    )

#### Description [src]

Invert the contents of the specified drawable.

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.

Available since: 2.10

Deprecated since: 3.2

Use filters “gegl:invert-linear” or “gegl:invert-gamma” instead.

#### Parameters

`linear`

  Type: `gboolean`

  Whether to invert in linear space.

#### Return value

Type: `gboolean`

TRUE on success.