Implemented gimp_bezier_stroke_arcto () that creates an elliptical arc in

2003-09-11  Simon Budig  <simon@gimp.org>

	* vectors/gimpbezierstroke.[ch]: Implemented
	gimp_bezier_stroke_arcto () that creates an elliptical arc
	in the way SVG works.

	* vectors/gimpvectors-import.c: use it.
This commit is contained in:
Simon Budig 2003-09-11 01:23:58 +00:00 committed by Simon Budig
parent f8ea814c69
commit b04af97000
2 changed files with 16 additions and 6 deletions

View file

@ -1,3 +1,11 @@
2003-09-11 Simon Budig <simon@gimp.org>
* vectors/gimpbezierstroke.[ch]: Implemented
gimp_bezier_stroke_arcto () that creates an elliptical arc
in the way SVG works.
* vectors/gimpvectors-import.c: use it.
2003-09-11 Sven Neumann <sven@gimp.org>
* plug-ins/common/screenshot.c: removed lots of redundant casts.

View file

@ -750,18 +750,20 @@ parse_path_do_cmd (ParsePathContext *ctx,
ctx->param = 0;
}
break;
#if 0
case 'a':
if (ctx->param == 7 || final)
{
rsvg_path_arc (ctx,
ctx->params[0], ctx->params[1], ctx->params[2],
ctx->params[3], ctx->params[4],
ctx->params[5], ctx->params[6]);
coords.x = ctx->cpx = ctx->rpx = ctx->params[5];
coords.y = ctx->cpy = ctx->rpy = ctx->params[6];
gimp_bezier_stroke_arcto (ctx->stroke,
ctx->params[0], ctx->params[1],
gimp_deg_to_rad (ctx->params[2]),
ctx->params[3], ctx->params[4],
&coords);
ctx->param = 0;
}
break;
#endif
default:
ctx->param = 0;
break;