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

Stroke dash line not working #48

Open
licaili193 opened this issue Sep 1, 2019 · 8 comments
Open

Stroke dash line not working #48

licaili193 opened this issue Sep 1, 2019 · 8 comments
Labels

Comments

@licaili193
Copy link

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!

@kobalicek
Copy link
Member

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.

@giserfly
Copy link

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!

@kobalicek
Copy link
Member

kobalicek commented Jun 13, 2022

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

@giserfly
Copy link

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

@kobalicek
Copy link
Member

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

@Smorodov
Copy link

Smorodov commented Nov 6, 2022

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

@qd1308504206
Copy link

qd1308504206 commented Jul 10, 2023

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

@kobalicek
Copy link
Member

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

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

No branches or pull requests

5 participants