gimp-layer-new-from-drawable

Spencer Kimball & Peter Mattis

Description

Create a new layer by copying an existing drawable.

Help

This procedure creates a new layer as a copy of the specified drawable. The new layer still needs to be added to the 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_DRAWABLE drawable The source drawable from where the new layer is copied
PF_IMAGE dest-image The destination image to which to add the layer

Return

Type Name Description
PF_LAYER layer-copy The newly copied layer