[cairo] Group surface size
Chris Wilson
chris at chris-wilson.co.uk
Tue May 14 03:07:20 PDT 2013
On Tue, May 14, 2013 at 11:50:22AM +0200, Donn wrote:
> Hi,
> When doing cairo_push_group() and pop_group() - what is the size of
> the surface that gets popped?
>
> For example - I'm on a 500x500 context. I want to draw a 16x16 icon
> (which I want to blit about the place later) so I push_group, draw
> the icon and then pop_group to a global pattern variable.
> Later I set_source to the pattern and paint().
>
> Is the pattern 500x500 or is it the extents of the icon as drawn, 16x16?
The group takes the size (and location) of the current clip extents.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the cairo
mailing list