Re: global clip for a cairo context
Lawrence D'Oliveiro <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Organization | Geek Central |
| Message-ID | <[email protected]> |
On Sun, 3 Jan 2016 19:42:52 +1300, I wrote: > On Sun, 3 Jan 2016 16:17:04 +1030, Adrian Johnson wrote: > > > Assuming a rectangular clip you could use something like: > > > > clipped_surf = cairo_surface_create_for_rectangle (cairo_get_target > > (cr), x, y, w, h); > > clipped_cr = cairo_create (clipped_surf); > > Presumably that is intersected with the current clip on the parent > surface... Sorry, forgot that the clip is a characteristic of a context, not a surface... -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo