Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter missing in DrawBeziers #53

Open
mystery123sk opened this issue Feb 18, 2021 · 1 comment
Open

Parameter missing in DrawBeziers #53

mystery123sk opened this issue Feb 18, 2021 · 1 comment

Comments

@mystery123sk
Copy link

I believe there is a missing parameter in D2DGraphics.DrawBeziers - first curve starting point. The D2DBezierSegment contains only two control points and end path point (while you need 4 points for cubic bezier). You use the first control point also as a first main point of cubic bezier:

	context->factory->CreatePathGeometry(&path);
	path->Open(&sink);
	//sink->SetFillMode(D2D1_FILL_MODE_WINDING);
	sink->BeginFigure(bezierSegments[0].point1, D2D1_FIGURE_BEGIN_FILLED); //error - here you should add additional parameter as starting point
@jingwood
Copy link
Owner

jingwood commented Feb 18, 2021

DrawBeziers and AddPathBeziers should be improved. relates to #52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants