blend2d icon indicating copy to clipboard operation
blend2d copied to clipboard

Stroke dash line not working

Open licaili193 opened this issue 5 years ago • 8 comments

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!

licaili193 avatar Sep 01 '19 18:09 licaili193

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.

kobalicek avatar Sep 02 '19 06:09 kobalicek

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!

giserfly avatar Jun 13 '22 11:06 giserfly

It's still not integrated with Blend2D - it will be part of a geometry update once finalized

kobalicek avatar Jun 13 '22 11:06 kobalicek

When roughly would this be?I'm looking forward to it.Best wishes!

giserfly avatar Jun 14 '22 03:06 giserfly

No sorry, we don't provide any ETAs as we work on Blend2D in our free time

kobalicek avatar Jul 16 '22 09:07 kobalicek

I made dashed line compiler it allows make dashed polyline in any framework able to plot solid line segments. https://github.com/Smorodov/dashedLineCompiler

Smorodov avatar Nov 06 '22 15:11 Smorodov

4 years have passed. There has been no progress on this issue? ohh no. @kobalicek is any plan for dash line ?

qd1308504206 avatar Jul 10 '23 06:07 qd1308504206

@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.

kobalicek avatar Jul 10 '23 11:07 kobalicek