Method

MetaShapedTextureget_image

Declaration [src]

cairo_surface_t*
meta_shaped_texture_get_image (
  MetaShapedTexture* stex,
  MtkRectangle* clip
)

Description [src]

Flattens the two layers of the shaped texture into one ARGB32 image by alpha blending the two images, and returns the flattened image.

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.

Return value

Type: cairo_surface_t

A new cairo surface to be freed with cairo_surface_destroy().

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