[Image-SIG] Aggdraw: curveto()
fredrik at pythonware.com
Wed Sep 24 20:44:57 CEST 2008
> it seems that this is a known problem: the curveto() function of aggdraw
> draws straight lines instead of curves, ignoring the given bezier
> control points. the last post i found about this dates back to march
> 2006, and even the developer version of aggdraw via svn didn't change this.
> if i could code in C i would have a look at it myself, but i'm helpless.
> could this somehow be solved?
here's a workaround, at least: replace the path_close implementation
with the following:
path_close(PathObject* self, PyObject* args)
if (!PyArg_ParseTuple(args, ":close"))
/* expand curves */
agg::path_storage* path = self->path;
self->path = new agg::path_storage();
self->path->add_path(curve, 0, false);
(not sure this is the best way to fix this, but it should hopefully get
More information about the Image-SIG