vendredi 13 mars 2015

Save canvas then restore, why is that?


Vote count:

0




I often see the following code



canvas.save().
canvas translate or rotate
some drawing
canvas.restore


I don't understand why we save and then restore. What's the point of undoing what we just did! I am sure I am missing something here Thanks



asked 2 mins ago

Snake

2,557






Save canvas then restore, why is that?

Aucun commentaire:

Enregistrer un commentaire