gimp-image-insert-layer

Spencer Kimball & Peter Mattis

Description

Add the specified layer to the image.

Help

This procedure adds the specified layer to the image at the given position. If the specified parent is a valid layer group (See 'gimp-item-is-group' and 'gimp-layer-group-new') then the layer is added inside the group. If the parent is 0, the layer is added inside the main stack, outside of any group. The position argument specifies the location of the layer inside the stack (or the group, if a valid parent was supplied), starting from the top (0) and increasing. If the position is specified as -1 and the parent is specified as 0, then the layer is inserted above the active layer, or inside the group if the active layer is a layer group. The layer type must be compatible with the image base type.


Type

unknown

Parameters

Type Name Description
PF_IMAGE image The image
PF_LAYER layer The layer
PF_LAYER parent The parent layer
PF_INT position The layer position

Return

None