Code example for Canvas

Methods: getSaveCount, restoreToCount, save, translate