Clutter.Stage.paint_to_buffer

### Method

# Clutter Stagepaint_to_buffer

#### Declaration [src]

    gboolean
    clutter_stage_paint_to_buffer (
      ClutterStage* stage,
      const cairo_rectangle_int_t* rect,
      float scale,
      uint8_t* data,
      int stride,
      CoglPixelFormat format,
      ClutterPaintFlag paint_flags,
      GError** error
    )

#### Description [src]

Take a snapshot of the stage to a provided buffer.

#### 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.
`data` | An array of `guint8`
| A pointer to the data.
| The data is owned by the caller of the function.
`stride` | `int`
| Stride of the image surface.
`format` | `CoglPixelFormat`
| The pixel format.
`paint_flags` | `ClutterPaintFlag`
| The `ClutterPaintFlag`.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `gboolean`
| `TRUE` is the buffer has been paint successfully, `FALSE` otherwise.