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

涂鸦覆盖面积 #21

Open
serge66 opened this issue Jun 14, 2018 · 3 comments
Open

涂鸦覆盖面积 #21

serge66 opened this issue Jun 14, 2018 · 3 comments

Comments

@serge66
Copy link

serge66 commented Jun 14, 2018

你好,在此库基础上算出涂鸦覆盖图片的面积,有好的方法吗?

@1993hzw
Copy link
Owner

1993hzw commented Jun 14, 2018

你的面积怎么算呢,比如涂鸦时画了两个点,你需要怎么样的规则计算面积?如果是画的一条直线呢

@serge66
Copy link
Author

serge66 commented Jun 15, 2018

如果以图片左上角为坐标轴原点,以向右向下两个方向为xy轴,若图片宽高是100px * 100px,涂鸦两点或者一条直线,能否算出涂鸦所在的坐标点的个数呢,算出后除以图片的面积,这方案可行吗.

@1993hzw
Copy link
Owner

1993hzw commented Jun 15, 2018

这个没明白。怎么算面积,根据你产品需求定呀。

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

2 participants