Meta.ShapedTexture.paint_to_bitmap

### Method

# Meta ShapedTexturepaint_to_bitmap

#### Declaration [src]

    CoglBitmap*
    meta_shaped_texture_paint_to_bitmap (
      MetaShapedTexture* stex,
      MtkRectangle* clip,
      CoglPixelFormat format
    )

#### Description [src]

Captures the shaped texture contents as a `CoglBitmap` in the specified format.

#### Parameters

`clip`

  Type: `MtkRectangle`

  A clipping rectangle, to help prevent extra processing. In the case that the clipping rectangle is partially or fully outside the bounds of the texture, the rectangle will be clipped.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

`format`

  Type: `CoglPixelFormat`

  The pixel format for the image data.

#### Return value

Type: `CoglBitmap`

A new `CoglBitmap`.

The caller of the method takes ownership of the returned data, and is responsible for freeing it.
The return value can be `NULL`.