# 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).

![](/files/-MRHJxjNU77xu2Jhs3FW)

## `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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://easy-draw.joemazzone.net/python/module-reference/saving-your-drawing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
