Method

MetaWindowActorpaint_to_bitmap

Declaration [src]

CoglBitmap*
meta_window_actor_paint_to_bitmap (
  MetaWindowActor* self,
  MtkRectangle* clip,
  CoglPixelFormat format
)

Description [src]

Flattens the layers of self into an image by alpha blending the layers, and returns the result 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 actor, 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.