gimp-image-get-active-layer

Spencer Kimball & Peter Mattis

Description

Returns the specified image's active layer.

Help

If there is an active layer, its ID will be returned, otherwise, -1. If a channel is currently active, then no layer will be. If a layer mask is active, then this will return the associated layer.


Type

unknown

Parameters

Type Name Description
PF_IMAGE image The image

Return

Type Name Description
PF_LAYER active-layer The active layer