flatten


Description:

public unowned Layer flatten ()

Flatten all visible layers into a single layer.

Discard all invisible layers.

This procedure combines the visible layers in a manner analogous to merging with the [enum@Gimp.MergeType.CLIP_TO_IMAGE] merge type. Non-visible layers are discarded, and the resulting image is stripped of its alpha channel.

Parameters:

this

The image.

Returns:

The resulting layer.