-
Notifications
You must be signed in to change notification settings - Fork 979
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上画二维码会清空之前的画布 #54
Comments
因为二维码的背景色是白色,不是透明的,所以[第一步]的操作是会被覆盖的。 |
|
好,我看一下怎么解决 |
怎么重绘二维码?我清了画布页还是绘制不了 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
我需要在一个有内容的canvas上某个区域显示一个小的二维码,但是使用如下代码后会直接清空之前的画布
尝试使用save+restore也不能恢复
Environment
Reproduce
问题复现步骤:
新建一个画布,画一些内容
使用传ctx的方式画二维码
再画一些别的东西
期望的表现:
2者都能显示
观察到的表现:
最后画的才能显示
The text was updated successfully, but these errors were encountered: