Re: Group surface size
Chris Wilson <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
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 -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo