# Saving Your Drawing

## Using the Button

You can save your drawing as a PNG file by clicking the "Save Canvas" button.  Just be sure to provide the image with a file name.  The image will save in your project's current working directory (most likely the same folder as your code).

![](https://651142499-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MRAMSGwqRIdQ2ADsTkz%2F-MRHCKDzsP-GVRuzOnw2%2F-MRHJxjNU77xu2Jhs3FW%2Fsave_pic.gif?alt=media\&token=9ba533c1-b238-4dd8-a76b-3be9650f172e)

## `save_canvas()` Function

If you want to programmatically save the canvas, you can use the `save_canvas()` function. &#x20;

```python
easy_draw.save_canvas()
```

The function does launch the a dialog to enter the file's name.&#x20;

If you want to use the `save_canvas()` function without launching the dialog each time, you must provide a file name to save the image as.&#x20;

```python
easy_draw.save_canvas("my_pic")
```

The image file will save as a .png
