---
metadata:
  - name: generator
    content: Diplodoc Platform v5.70.0
alternate:
  - https://divkit.tech/docs/en/concepts/extensions/rasterize.md
  - https://divkit.tech/docs/ru/concepts/extensions/rasterize.md
  - href: https://divkit.tech/docs/en/concepts/extensions/rasterize.md
    type: text/markdown
    title: Markdown version
  - href: https://divkit.tech/docs/en/llms.txt?revision=r22102947
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt?revision=r22102947

# Rasterization for fixing offscreen rendering

To fix offscreen rendering issues in overlap containers, use the `rasterize` extension (iOS only):

```json translate=no
{
  "extensions": [
    {
      "id": "rasterize"
    }
  ]
}
```

The extension has no parameters.

## How it works {#behavior}

- The element together with its nested elements is rendered as a single bitmap image.
- The image is created at the pixel density of the screen, so the content stays sharp.
- Solves offscreen rendering issues in overlap containers.

## Connection {#connect}

```swift translate=no
DivKitComponents(
  ...
  extensionHandlers: [
    RasterizeExtensionHandler()
  ]
)
```

<!-- source: en/_includes/index/troubleshooting.md -->
## Learn more {#troubleshooting}

You can discuss topics of interest in the DivKit user community in Telegram: [https://t.me/divkit_community_en](https://t.me/divkit_community_en).



[DivKit Repository](https://github.com/divkit/divkit)
<!-- endsource: en/_includes/index/troubleshooting.md -->
