This procedure combines the visible layers into a single layer using the specified merge type. A merge type of EXPAND_AS_NECESSARY expands the final layer to encompass the areas of the visible layers. A merge type of CLIP_TO_IMAGE clips the final layer to the extents of the image. A merge type of CLIP_TO_BOTTOM_LAYER clips the final layer to the size of the bottommost layer.
INPUT ARGUMENTS
TYPE
NAME
DESCRIPTION
IMAGE
image
The image
INT32
merge_type
The type of merge: { EXPAND_AS_NECESSARY (0), CLIP_TO_IMAGE (1), CLIP_TO_BOTTOM_LAYER (2) }
RETURN VALUES
TYPE
NAME
DESCRIPTION
LAYER
layer
The resulting layer
SOME SYNTAX ALTERNATIVES
layer = $image->merge_visible_layers (merge_type)
AUTHOR
Spencer Kimball & Peter Mattis (c)1995-1996 Spencer Kimball & Peter Mattis