Compositing layers with cairo_push_group and pop_group_to_source
Render a watermark or shadow into an offscreen Cairo group, then paint it as a single blended layer over your surface.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Render a watermark or shadow into an offscreen Cairo group, then paint it as a single blended layer over your surface.
The Cairo graphics library utilizes an internal cache for transformed coordinates in linear and radial gradients to optimize rendering performance. When a pattern's matrix is modified using cairo_pattern_set_matrix , the library must determine when to invalidate this cache to ensure rendering correctness. In libcairo 1.18.x , there is an unresolved behavior