We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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上某个区域显示一个小的二维码,但是使用如下代码后会直接清空之前的画布
// 绘制二维码 drawQrcode({ width: canvasWidth, height: canvasHeight, ctx, text: this.shareUrl, x: rpxToPx(32), y: rpxToPx(652) })
尝试使用save+restore也不能恢复
问题复现步骤:
期望的表现: 2者都能显示
观察到的表现: 最后画的才能显示
The text was updated successfully, but these errors were encountered:
因为二维码的背景色是白色,不是透明的,所以[第一步]的操作是会被覆盖的。
Sorry, something went wrong.
好,我看一下怎么解决
怎么重绘二维码?我清了画布页还是绘制不了
No branches or pull requests
Description
我需要在一个有内容的canvas上某个区域显示一个小的二维码,但是使用如下代码后会直接清空之前的画布
尝试使用save+restore也不能恢复
Environment
Reproduce
问题复现步骤:
新建一个画布,画一些内容
使用传ctx的方式画二维码
再画一些别的东西
期望的表现:
2者都能显示
观察到的表现:
最后画的才能显示
The text was updated successfully, but these errors were encountered: