---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.5
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-nine-patch-background.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-nine-patch-background.md
  - href: en/concepts/divs/2/div-nine-patch-background.md
    type: text/markdown
    title: Markdown version
  - href: ../../../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-nine-patch-background
Image in 9-patch format (https://developer.android.com/studio/write/draw9patch).

## Parameters
| Parameters | Description |
| --- | --- |
| `image_url` | <p>**string**</p><p>Required parameter.</p><p>Image URL.</p><p>The value must be a valid URL.</p><p>Available platforms: Android, iOS, web.</p> |
| `insets` | <p>**object**</p><p>Required parameter.</p><p>Margins that break the image into parts using the same rules as the CSS `border-image-slice` property (https://developer.mozilla.org/en-US/docs/Web/CSS/border-image-slice).</p><p>The value has the type `div-absolute-edge-insets`.</p><p>Available platforms: Android, iOS, web.</p> |
| `type` | <p>**string**</p><p>Required parameter.</p><p>The value must always be `nine_patch_image`.</p><p>Available platforms: Android, iOS, web.</p> |

<details>
<summary>JSON</summary>

```json
{
  type*: "nine_patch_image",
  image_url*: "string",
  insets*: {
    bottom: "int",
    left: "int",
    right: "int",
    top: "int"
  }
}
```
</details>
