[cairo] mask repeat

Antoine Azar cairo at antoineazar.com
Fri Feb 29 02:26:55 PST 2008


Hey guys,

I'm testing extend_pad set for a mask, but trying first to hit the 
case where the mask is repeating. I wrote a code sample that copies a 
source surface onto a dest through a mask, but I can't seem to get 
the mask to repeat. How should I do that? Setting the repeat for a 
source is easy with cairo_pattern_set_extend (cairo_get_source (cr), 
CAIRO_EXTEND_REPEAT);, but I can't find a cairo_get_mask() or 
equivalent. Is it possible at all in Cairo?

Thanks,
Antoine



More information about the cairo mailing list