[cairo] request for pattern duplication function
behdad at behdad.org
Fri Oct 3 14:34:28 PDT 2008
Theo Veenker wrote:
> Hi all,
> In my application I need to be able to copy a pattern. Now I do that in my
> application. I'd prefer having a cairo API for doing this. Otherwise I'd
> need to update my code each time when new pattern types are added to cairo
> (assuming that will happen).
> I like to suggest an API for duplicating a pattern, something like:
> cairo_pattern_t* cairo_pattern_copy(cairo_pattern_t *pattern);
> Could this be added to the wishlist please?
Do you need to modify either of the patterns afterwards? Does
cairo_pattern_reference() not solve your problem?
Have fun with cairo!
More information about the cairo