> ## 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](/editor/exporting/exporting-for-video-and-static-design).
</Note>

<Tabs>
  <Tab title="Compose">
    <Card title="Demo" icon="external-link" arrow="true" horizontal href="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.
    </Card>

    Rendering to a bitmap is done using the `RenderBuffer` class or the `onBitmapAvailable` callback in the `Rive` Composable.
  </Tab>

  <Tab title="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.
  </Tab>
</Tabs>
