# Inpaint not masked

We have introduced the fundamental inpaint function, and now we will discuss the concept of "inpaint not masked" in this section.

There are instances when you may want to preserve a specific small area, typically a face, while redrawing or modifying the rest of the image.

Let's see how this work with a simple example. We will use this image as base image in this section

<figure><img src="/files/cfZlx2rLf3qcJDxGESSc" alt="" width="563"><figcaption><p>a young girl, wearing schcool uniform, in classroom</p></figcaption></figure>

Similar to the normal inpainting process, we begin by selecting the inpaint mode and proceed to draw a mask. However, in this case, we draw the mask specifically on the area that we wish to preserve.

<figure><img src="/files/oxZpTcYZo0TvZC1z6fLP" alt="" width="563"><figcaption><p>Draw a mask on the face</p></figcaption></figure>

After drawing the mask, remember to check the "Inpaint not masked" option. To maintain accurate body composition, it is advisable to utilize a control layer in conjunction with the inpainting process. In this case, we will employ Pose control with the base image.

<figure><img src="/files/IQsPaijaVf1FIiy8wc73" alt="" width="563"><figcaption><p>Check "inpaint not masked", employ Pose control layer</p></figcaption></figure>

Lastly, input the desired prompt. In this case, let's use the following prompt: "1 girl, wearing bodysuit, pink hair, long hair, in cyberpunk city."

Now, click on the "Start drawing" button. Below is the resulting image we obtained:

<figure><img src="/files/81mjqwhfsB3JHJmghCug" alt="" width="563"><figcaption></figcaption></figure>


---

# 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://docs.dreamerland.ai/image/inpainting/inpaint-not-masked.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.
