简体   繁体   中英

Get info about a line using Win2d C#

I'm drawing a line with win2d and C# uwp. I would like to get infomation about that line such as the line length and even a list of points that are used to create that line. I've tried everything I know and I just can't figure out a solution. Maybe I'm approaching this from the wrong angle? Can anyone help?

在此处输入图片说明

If you have information about the start and end, can't you apply this? Length = (y1 - y2)^2 + (x1 - x2)^2

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM