Gimp.Image.prototype.get_selection

function get_selection(): Gimp.Selection {
    // Gjs wrapper for gimp_image_get_selection()
}
  

Returns the specified image's selection.

This will always return a valid ID for a selection -- which is represented as a channel internally.

Returns

The selection channel.