如何获得精确的点坐标值? [英] How to get the accurate coordinates value in points?
问题描述
>
我正在尝试获取点值.我传递的是double值,在WPF点中,坐标值设置正确.在UWP中,它的设置不正确.这里 这是我的代码.
double
Point 新 Point
在WPF中,坐标值是
Point.X = 400.002015366677 Point.Y = 但在UWP中:
Point.X = 400.00201416015625;
Point.Y = 如何在UWP中获得准确的值?
谢谢.
嗨!
本主题回答了您的问题: https://www.janaks .com.np/getting-location-details-on-uwp-app/
如果对您有好处,您可以标记吗请回答您的问题吗?
Hi,
I am trying to get the point values. I am passing double values, in WPF points coordinate values are setting properly. In UWP it is not setting properly. Here it is my code.
double x = 400.002015366677, y = 300.000014;
Point point = new Point(x, y);
In WPF the coordinates values is
Point.X=400.002015366677;
Point.Y=300.000014;
But in UWP:
Point.X= 400.00201416015625;
Point.Y=300;
How to get the accurate value in UWP?
Thanks.
Hi!
This topic answers to your question : https://www.janaks.com.np/getting-location-details-on-uwp-app/
Hope it wil be useful.
If it's good for you, can you mark this answer as answer of your question please?
Follow me on twitter : https://twitter.com/NordineMhoumadi
这篇关于如何获得精确的点坐标值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!