Clutter.Stage.paint_to_content

### Method

# Clutter Stagepaint_to_content

#### Declaration [src]

    ClutterContent*
    clutter_stage_paint_to_content (
      ClutterStage* stage,
      const cairo_rectangle_int_t* rect,
      float scale,
      ClutterPaintFlag paint_flags,
      GError** error
    )

#### Description [src]

Take a snapshot of the stage to a `ClutterContent`.

#### Parameters

`rect` | `cairo_rectangle_int_t`
| A #cairo_rectangle_int_t.
| The data is owned by the caller of the function.
`scale` | `float`
| The scale.
`paint_flags` | `ClutterPaintFlag`
| The `ClutterPaintFlag`.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `ClutterContent`
| The `ClutterContent` or `NULL` on error.
| The caller of the method takes ownership of the data, and is responsible for freeing it.