[cairo] How can I draw the ellipse without a portion of it, defined by two angles?
Carlo
defrag1986 at gmail.com
Tue Oct 11 08:22:40 PDT 2011
Hi ! How can I draw an ellipse without a portion of it (without a slice)??
I have a start angle and end angle of the ellipse refered to the centre,
but if I try with:
/ cairo_save(cr)/
//cairo_///translate(cr,x + width / 2., y + height / 2.);
// ///// cairo_/////scale(cr,1. * (width / 2.), 1. * (height / 2.));
// /////cairo_/////arc(cr,0., 0., 1., S_ANGLE, E_ANGLE);
cairo_restore(cr);
cairo_stroke(cr);
/the ellipse drawn isn't correct, because in scaling the coords. I scale the angles.
How can I draw the ellipse without a correct portion of it, defined by two angles?
Thank you,
Carlo
/ /
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20111011/8a1d01d2/attachment.html>
More information about the cairo
mailing list