2005
Shlomi Fish
Create a new channel from a color component
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.
unknown
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 |
Type | Name | Description |
---|---|---|
PF_CHANNEL | channel | The newly created channel |