mergeLayers

Composes all the image layers from the current given image onward to produce a single image of the merged layers.

The inital canvas's size depends on the given ImageLayerMethod, and is initialized using the first images background color. The images are then compositied onto that image in sequence using the given composition that has been assigned to each individual image.

Parameters

layers Image[]

The images to merge.

method ImageLayerMethod

The method of selecting the size of the initial canvas.

    Meta