Gimp.Image.get_layers
@accepts(Gimp.Image)
@returns([Gimp.Layer])
def get_layers(self):
# Python wrapper for gimp_image_get_layers()
Returns the list of root layers contained in the specified image.
This procedure returns the list of root layers contained in the specified image. The order of layers is from topmost to bottommost. Note that this is not the full list of layers, but only the root layers, i.e. layers with no parents themselves. If you need all layers, it is up to you to verify that any of these layers is a group layer with Gimp.Item.is_group and to obtain its children with Gimp.Item.get_children (possibly recursively checking if these have children too).
- self
The image.
- Returns