Re: Group surface size

Chris Wilson <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
On Tue, May 14, 2013 at 12:22:32PM +0200, Donn wrote:
> On 14/05/2013 12:07, Chris Wilson wrote:
> >The group takes the size (and location) of the current clip extents.
> Does this mean I should set a clip before I call push_group? Something like:
> 
> cairo_save()
> draw a rectangle of 16x16 at correct position
> cairo_clip()
> cairo_push_group()
> draw my icon
> pat = cairo_pop_group()
> cairo.restore()

Yes. Maybe do a reset-clip after the save as well.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.