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

新手请教一下切割问题 #6

Open
KasuganoSoraaa opened this issue Jul 15, 2018 · 3 comments
Open

新手请教一下切割问题 #6

KasuganoSoraaa opened this issue Jul 15, 2018 · 3 comments

Comments

@KasuganoSoraaa
Copy link

代码是如何保证切出来的图片刚好是连连看的小方块呢?
或者说是其他思路OTZ
萌新求指教

@TheThreeDog
Copy link
Owner

这里是一个很粗暴但很有效的办法:我直接截图用PS看游戏区域左上角距离游戏窗体左上角的距离, 在代码中直接把这个数据写死让代码从这里开始按照固定步长截取小方块,至于保证截取的是连连看的小方块,同样我用PS看了下一个方块横竖各是多少像素,so .....

@zhangkkan
Copy link

这方法也太真实了

@1051948124
Copy link

硬核切割

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

No branches or pull requests

4 participants