Wpf line with variable thickness
Is there any way to create lines (Xaml), with different thickness, like this:
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
精彩评论