主权项 |
1. A method for combining layers of an image, the image comprising a plurality of layers represented using an intermediate format, said method comprising:
receiving at least two layers from the plurality of layers to be combined; estimating resources required to combine the received layers using a first combining operation, wherein the first combining operation comprises at least rasterising data of the received layers; based on the estimated resources for the first combining operation, attempting to combine the received layers using a second combining operation to produce an output in the intermediate format; and in response to the attempting, generating a combined layer for the image by combining the received layers in accordance with a selected one of the first combining operation and the second combining operation, wherein the selected combining operation is based on success of the attempt. |