| Previous | Next
Changing the Display ListEvery time a method looks through all the items in the Canvas for a specific tag or ID, it looks through the display list. The display list is created as items are added to the Canvas. The first item added to the Canvas is the first item in the display list, and items are added in order as they are created. Also, items created later are drawn above the ones created earlier if they overlap at all. To change the display order, use the $canvas->raise( The first argument for each method is the tag or ID of the item(s) you want to move in the display list. The second is the tag or ID next to which the first item should be placed (either above or below). If the first tag or ID matches more than one item, they are all moved. Note that if you use the |