Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

●●●●●●●●建议坐标从1,1开始●●●●●●●● #606

Closed
JJJZ opened this issue Oct 22, 2017 · 7 comments
Closed
Labels

Comments

@JJJZ
Copy link

JJJZ commented Oct 22, 2017

■进入截图功能后,会自动选择1x1像素,此时提示是0,0。可能对于程序员来说数值是从0开始,单我相信对于大众来说都是从1开始的,这样也好照应截全屏的时候不会-1。
■或者可以把坐标值改为截图的像素大小,仅仅只是显示鼠标的坐标值对于截图来说意义不大。

@EtaoinWu
Copy link

  • 请问一下显示-1是什么情况?
  • 截图的像素大小是有显示的。

@JJJZ
Copy link
Author

JJJZ commented Oct 22, 2017 via email

@liulex
Copy link
Member

liulex commented Oct 22, 2017

坐标值和选区大小的逻辑是不一样的,我认为没有必要让屏幕坐标从 1 开始,那样甚至是不合理的。
例如,当你使用多屏,并且副屏在主屏左边或上面的时候,屏幕坐标在副屏上会是负值。这时候如果使用 1-based 的坐标,副屏的坐标就会让人很费解了。

@JJJZ
Copy link
Author

JJJZ commented Oct 22, 2017 via email

@ysc3839
Copy link

ysc3839 commented Oct 22, 2017

@JJJZ 操作系统都是 (0, 0) 开始的,各种绘图软件也是,所以我觉得没必要……

@JJJZ
Copy link
Author

JJJZ commented Oct 22, 2017 via email

@liulex
Copy link
Member

liulex commented Oct 22, 2017

@JJJZ #360 #373

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants