gimp-layer-new-from-visible

Sven Neumann <sven@gimp.org>

Description

Create a new layer from what is visible in an image.

Help

This procedure creates a new layer from what is visible in the given image. The new layer still needs to be added to the destination image, as this is not automatic. Add the new layer with the 'gimp-image-insert-layer' command. Other attributes such as layer mask modes, and offsets should be set with explicit procedure calls.


Type

unknown

Parameters

Type Name Description
PF_IMAGE image The source image from where the content is copied
PF_IMAGE dest-image The destination image to which to add the layer
PF_VALUE name The layer name

Return

Type Name Description
PF_LAYER layer The newly created layer