Skip to content

How to draw a dotted line? #155

Answered by antonfirsov
0xced asked this question in Q&A
Aug 1, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Personally, I'm not super familiar with the API, but if I'm getting it right, our current Pen structure doesn't support custom caps, however this method may actually support it. It generates a shape from an line path, so you can draw it with one of the .Fill() overloads. This example might be also interesting. Can you give it a try?

If it works out, I think it would make sense to expose JointStyle and EndCapStype on the IPen API.

/cc @tocsoft

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@JimBobSquarePants
Comment options

@0xced
Comment options

@antonfirsov
Comment options

Answer selected by 0xced
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants