ScaleView.Zoom(double,double)并不总是缩放到指定的确切位置 [英] ScaleView.Zoom(double, double) doesn't always zoom to the exact position specified

查看:87
本文介绍了ScaleView.Zoom(double,double)并不总是缩放到指定的确切位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好Alex和Co,

我正面临着ScaleView.Zoom(double,double)方法的一个小问题。此方法将轴缩放到指定的起点和终点。但是,在某些情况下,应用于轴的实际ViewMinimum和ViewMaximum值与输入值
不同。通常只有一个或一个小于一的值。

I am facing a small problem with the ScaleView.Zoom(double, double) method. This method zooms an axis to a specified start and end point. However, in some cases the actual ViewMinimum and ViewMaximum values that are applies to the axis are not the same as the input values. Usually it is off by exactly one or a value less than one.

我测试了一些不同的想法,我发现不是使用Zoom方法,而是Axis.Minimum和Axis.Maximum值可以设置,然后调用Axis.ScaleView.ZoomReset()。这消除了错误,但速度很慢。最终我需要调用
Zoom(double,double)方法,并使起点和终点正好是我指定的值。这可能吗?

I have tested out a few different ideas and I've found that instead of using the Zoom method, the Axis.Minimum and Axis.Maximum values can be set, then Axis.ScaleView.ZoomReset() called. This eliminates the errors but is very slow. Ultimately I need to call the Zoom(double, double) method and have the start and end points being exactly the values I specify. Is this possible?

 

感谢您的帮助。

 

推荐答案

我已经整理了一个小样本项目,它显示了我所指的错误。我可以通过电子邮件发送给其中一个图表开发人员,还是应该将其上传到公共文件服务器?

I have put together a small sample project which shows the error I'm referring to. Can I e-mail it to one of the chart developers or should I upload it to a public file server?


这篇关于ScaleView.Zoom(double,double)并不总是缩放到指定的确切位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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