gimp-channel-new-from-component

Shlomi Fish <shlomif@iglu.org.il>

Description

Create a new channel from a color component

Help

This procedure creates a new channel from a color component. The new channel still needs to be added to the image, as this is not automatic. Add the new channel with 'gimp-image-insert-channel'. Other attributes, such as channel visibility, should be set with explicit procedure calls.


Type

unknown

Parameters

Type Name Description
PF_IMAGE image The image to which to add the channel
PF_INT component The image component { RED-CHANNEL (0), GREEN-CHANNEL (1), BLUE-CHANNEL (2), GRAY-CHANNEL (3), INDEXED-CHANNEL (4), ALPHA-CHANNEL (5) }
PF_VALUE name The channel name

Return

Type Name Description
PF_CHANNEL channel The newly created channel