如何获得精确的点坐标值? [英] How to get the accurate coordinates value in points?

查看:461
本文介绍了如何获得精确的点坐标值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试获取点值.我传递的是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/

如果对您有好处,您可以标记吗请回答您的问题吗?

在Twitter上关注我: 


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆