Gimp.Image.prototype.get_active_channel

function get_active_channel(): Gimp.Channel {
    // Gjs wrapper for gimp_image_get_active_channel()
}
  

Returns the specified image's active channel.

If there is an active channel, this will return the channel ID, otherwise, -1.

Returns

The active channel.