I need the current path will be cleared from the cairo context.
"michinari.nukazawa" <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
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/
==========
--
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo