> ## Documentation Index
> Fetch the complete documentation index at: https://rive.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Rendering to a Bitmap

> Render screenshots and video at runtime.

Rendering to a bitmap at runtime is useful for scenarios such as snapshot testing and rendering video encoded from data-bound files.

> [!NOTE]
>
> For rendering to a bitmap from the Rive Editor, see [Exporting for Video or Static Design](https://rive.app/docs/editor/exporting/exporting-for-video-and-static-design.md).

> [tab] Compose
>
> > [card] [Demo](https://github.com/rive-app/rive-android/blob/master/app/src/main/java/app/rive/runtime/example/RiveSnapshotActivity.kt)
> >
> > See the `RiveSnapshotActivity` example for a demonstration of this feature.
>
> Rendering to a bitmap is done using the `RenderBuffer` class or the `onBitmapAvailable` callback in the `Rive` Composable.

> [tab] Legacy
>
> Rendering to a bitmap was technically possible in the legacy runtime by rendering to a Canvas backed by a bitmap or by sub-classing the renderer, but it was not a built-in feature and required more effort to implement. There are no plans to retrofit this feature into the legacy runtime.
