---
title: save
framework: webkitjs
role: symbol
role_heading: Instance Method
path: webkitjs/canvasrenderingcontext2d/1634183-save
---

# save

Saves the current context settings on the stack.

## Declaration

```data
void save();
```

## Discussion

Discussion You can save and restore all of the context settings: rotation, scale, translation, transformation matrix, stroke and fill styles, and text settings. This is a very fast, nestable operation.

## See Also

### Saving and Restoring Settings

- [restore](webkitjs/canvasrenderingcontext2d/1628925-restore.md)
