extract_component


Description:

[ Version ( deprecated = true , deprecated_since = "3.2" , since = "2.10.34" ) ]
public bool extract_component (int component, bool invert, bool linear)

Warning: extract_component is deprecated since 3.2.

Extract a color model component.

Note:

Use filter "gegl:component-extract" instead.

Extract a color model component.

Parameters:

this

The drawable.

component

Component (RGB Red (0), RGB Green (1), RGB Blue (2), Hue (3), HSV Saturation (4), HSV Value (5), HSL Saturation (6), HSL Lightness (7), CMYK Cyan (8), CMYK Magenta (9), CMYK Yellow (10), CMYK Key (11), Y'CbCr Y' (12), Y'CbCr Cb (13), Y'CbCr Cr (14), LAB L (15), LAB A (16), LAB B (17), LCH C(ab) (18), LCH H(ab) (19), Alpha (20)).

invert

Invert the extracted component.

linear

Use linear output instead of gamma corrected.

Returns:

TRUE on success.