Gimp.Image.prototype.list_selected_channels

function list_selected_channels(): Array(Gimp.Channel) {
    // Gjs wrapper for gimp_image_list_selected_channels()
}
  

Returns the list of channels selected in the specified image.

This procedure returns the list of channels selected in the specified image.

Since 3.0

Returns

The list of selected channels in the image. The returned list must be freed with g_list_free(). Layer elements belong to libgimp and must not be freed.