[ CCode ( has_construct_function = false ) ]
[ Version ( since = "2.4" ) ]
public Channel.from_component (Image image, ChannelType component, string name)
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 [ method@Gimp.Image.insert_channel].
Other attributes, such as channel visibility, should be set with explicit procedure calls.
| image |
The image to which to add the channel. |
| component |
The image component. |
| name |
The channel name. |
|
The newly created channel. |