[cairo] Clip region problems

Keith Packard keithp at keithp.com
Wed May 18 17:14:45 PDT 2005


On Wed, 2005-05-18 at 15:56 -0700, Bill Spitzak wrote:
> What happens if you create multiple cairo_surface_t objects for the same 
> object? Is this supposed to work? (my guess is that it works for some 
> backends, and not for others...)

It works if you pass a re-usable backend object to cairo (xlib, win32,
quartz), otherwise you're out of luck.  In particular, the PDF and image
backends have no separable object.  As such, the semantics of doing this
must be defined by the backend, so applications better not plan on
taking advantage of them in a multi-backend environment. 

As long as we carefully define the semantics within the same surface,
and make those generally useful, I think we're fine.

-keith

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050518/dcf5f34e/attachment.pgp


More information about the cairo mailing list