[cairo] I need the current path will be cleared from the cairo context.

michinari.nukazawa michinari.nukazawa at gmail.com
Fri Oct 21 16:11:43 UTC 2016


Hello.

I need the current path will be cleared from the cairo context.
Can I get teqnique or API function?

====

while(...){
//! draw and get extent to the one path.
cairo_curve_to(cr, ~);
cairo_curve_to(cr, ~);
~

cairo_set_source_rgba (cr, cc_f.r, cc_f.g, cc_f.b, cc_f.a);
cairo_fill_preserve(cr);

cairo_set_source_rgba (cr, cc_s.r, cc_s.g, cc_s.b, cc_s.a);
cairo_stroke_preserve(cr);

cairo_stroke_extents(cr, &x1, &y1, &x2, &y2);

// cairo_path_clear(cr); // <- I need like this (clear path).

// goto next path.
}
====

Thanks.


-- 
==========
Michinari.Nukazawa

in the project "daisy bell"
https://daisy-bell.booth.pm/
==========



More information about the cairo mailing list