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

变形有虚线怎么解决? #14

Open
Jeff-CGJ opened this issue Jul 17, 2018 · 5 comments
Open

变形有虚线怎么解决? #14

Jeff-CGJ opened this issue Jul 17, 2018 · 5 comments

Comments

@Jeff-CGJ
Copy link

你好!
我看到你写的图片canvas变形, 但是上面有虚线,如何解决这个问题?

我要实现ps 类似的变形工具,但是有虚线,我变形就没意义了? 不是吗?

@whxaxes
Copy link
Owner

whxaxes commented Jul 17, 2018

由于用了 clip 导致的,暂时还没想到解决方案

@Jeff-CGJ
Copy link
Author

为什么不直接 用 css3 的 matrix3d 来解决问题?
下面是说明链接
http://www.useragentman.com/blog/2015/07/16/augment-photos-with-css3-matrix3d-transforms/

https://github.com/zoltan-dulac/Matrix-Construction-Set

但是我不知道 img transform后怎么保存变形的图片,你能帮下我吗? 该怎么做?

@whxaxes
Copy link
Owner

whxaxes commented Jul 18, 2018

@chenguojie 要形变后能够保存为图片,我能想到的就只有 canvas

@Jeff-CGJ
Copy link
Author

Jeff-CGJ commented Jul 30, 2018

@whxaxes img css transform 后,你知道 怎么保存变形的结果吗? 我想不到这么弄? css 是能实现变形

@hnjerryluo
Copy link

由于用了 clip 导致的,暂时还没想到解决方案

不透明情况下可以放大clip的三角形解决,但透明时就不行了
这篇文章里有介绍 http://lrdcq.com/me/read.php/82.htm

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

3 participants