开发者

Wpf line with variable thickness

Is there any way to create lines (Xaml), with different thickness, like this:

Wpf line with variable thickness

I have one solution: closed path with开发者_如何学Python fill. Is there another one?


You could try it with an ink object, i.e. Stroke with a few StylusPoints that have a pressure. But whether pressure will be rendered as varying thickness might depend on other things as well. I guess, the best way is still the path in this case.


The only other way I see would be to create a custom control that would do it. Otherwise, I believe a path is the best way.


You could draw multiple lines and connect them. Maybe you could apply some kind of transformation matrix, but I also have no clue how exactly this could work.


this is pretty much what Path is for

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜