Menu

#1 Layers

open
nobody
None
9
2011-01-02
2011-01-02
Tom English
No

Layers currently do not work as designed. They do work when you clear a certain layer from a box, but they do not work when you draw.

For example, the code
Engine.drawBox(0,0,0,Color.red,page);//Draw a red box at position 0,0 and layer 0
Engine.drawBox(0,0,1,Color.blue,page);//Draw a blue box at position 0,0 and layer 1

works as expected, that is, the blue box is drawn over the red one.

However, if you switch the two statements:
Engine.drawBox(0,0,1,Color.blue,page);//Draw a blue box at position 0,0 and layer 1
Engine.drawBox(0,0,0,Color.red,page);//Draw a red box at position 0,0 and layer 0

then a red box is drawn on top.

Discussion


Log in to post a comment.