# Gimp.floating_sel_to_layer

    function floating_sel_to_layer(floating_sel: Gimp.Layer): Boolean {
        // Gjs wrapper for gimp_floating_sel_to_layer()
    }

Transforms the specified floating selection into a layer.

This procedure transforms the specified floating selection into a layer with the same offsets and extents. The composited image will look precisely the same, but the floating selection layer will no longer be clipped to the extents of the drawable it was attached to. The floating selection will become the active layer. This procedure will not work if the floating selection has a different base type from the underlying image. This might be the case if the floating selection is above an auxiliary channel or a layer mask.

floating_sel

  The floating selection.

Returns

  TRUE on success.