blend2d
blend2d copied to clipboard
Stroke dash line not working
Hey guys,
I wanted to stoke a dash line, so I did something like this:
BLArray<double> dash;
dash.append(10, 10);
ctx.setStrokeDashArray(dash);
ctx.setStrokeDashOffset(0);
ctx.strokeLine(10, 10, 110, 110);
but it is not working (it strokes a normal non-dahsed line). Where did I do it wrong?
Thank you very much!
Hello, this feature is unfortunately still under active development. It was not part of beta release due to difficulty, but it's being worked on and will be part of Blend2D soon.
Hello,i want to draw a dash line in work,and i just draw in single thread. Is there a simple way to draw it? Thanks!
It's still not integrated with Blend2D - it will be part of a geometry update once finalized
When roughly would this be?I'm looking forward to it.Best wishes!
No sorry, we don't provide any ETAs as we work on Blend2D in our free time
I made dashed line compiler it allows make dashed polyline in any framework able to plot solid line segments. https://github.com/Smorodov/dashedLineCompiler
4 years have passed. There has been no progress on this issue? ohh no. @kobalicek is any plan for dash line ?
@qd1308504206 Please be patient - it's all about priorities and time. We have a prototype of a new stroking engine with dashing, but it requires rational quadratic curves, so it's not a simple addition and it needs time and focus to make the initial implementation fully integrated and working.