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

用canvas生成带logo二维码,toDataURL保存图片时,中间的logo图片丢了,只剩下二维码图片了 #31

Open
qinmao opened this issue Aug 14, 2017 · 1 comment

Comments

@qinmao
Copy link

qinmao commented Aug 14, 2017

image

@wangqilinqqq
Copy link

因为里面 new Image() 的时候有一个 onload 事件,所以当时是获取不到里面的logo的,可以在 qrcode 函数增加一个回调函数 ,在onload 时间执行时触发回调,此时就可以获取到里面的logo了。下面是我的代码截图:
image

image

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