This procedure copies the specified layer and returns the copy. The newly copied layer is for use within the original layer's image. It should not be subsequently added to any other image. The copied layer can optionally have an added alpha channel. This is useful if the background layer in an image is being copied and added to the same image.
INPUT ARGUMENTS
TYPE
NAME
DESCRIPTION
LAYER
layer
The layer to copy
INT32
add_alpha
Add an alpha channel to the copied layer
RETURN VALUES
TYPE
NAME
DESCRIPTION
LAYER
layer_copy
The newly copied layer
SOME SYNTAX ALTERNATIVES
layer_copy = $layer->copy (add_alpha)
AUTHOR
Spencer Kimball & Peter Mattis (c)1995-1996 Spencer Kimball & Peter Mattis