Gimp.Image.prototype.set_active_channel

function set_active_channel(active_channel: Gimp.Channel): Boolean {
    // Gjs wrapper for gimp_image_set_active_channel()
}
  

Sets the specified image's active channel.

If the channel exists, it is set as the active channel in the image. Any previous active channel or layer is set to inactive. An exception is a previously existing floating selection, in which case this procedure will return an execution error.

active_channel

The new image active channel.

Returns

TRUE on success.