Gimp.Layer.add_alpha

@accepts(Gimp.Layer)
@returns(bool)
def add_alpha(self):
    # Python wrapper for gimp_layer_add_alpha()
  

Add an alpha channel to the layer if it doesn't already have one.

This procedure adds an additional component to the specified layer if it does not already possess an alpha channel. An alpha channel makes it possible to clear and erase to transparency, instead of the background color. This transforms layers of type RGB to RGBA, GRAY to GRAYA, and INDEXED to INDEXEDA.

self

The layer.

Returns