开发者

How do you get the end cap width or height values for line objects?

开发者 https://www.devze.com 2023-03-31 07:03 出处:网络
Does anybody know how you can get the endcap width or height values for a line object in C# WPF? Please assume we are using the round endcap (PenLineCap.Round), would like to figure this as a percenta

Does anybody know how you can get the endcap width or height values for a line object in C# WPF? Please assume we are using the round endcap (PenLineCap.Round), would like to figure this as a percentage of the line width or som开发者_开发百科e other ratio that would allow me to know the size in pixels of the endcap at any given time. Thanks all.


If you are using a PenLineCap.Round end cap on a WPF line, the line's StrokeThickness will determine the size of the end cap.

0

精彩评论

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