<a href='pix-pix-ctx.html#::pix::ctx::saveLayer'>saveLayer</a><span class='ruff-tiptext'><pre><span class='ruff_cmd'>saveLayer</span> <span class='ruff_arg'>context</span></pre>Saves the entire state of the context by pushing the current state onto a stack and allocates a new image layer for subsequent drawing. Calling restore blends the current layer image onto the prior layer or root image.
</span></li><li class='ruff-toc3 ruff-tip'><a href='pix-pix-ctx.html#::pix::ctx::scale'>scale</a><span class='ruff-t