-
Notifications
You must be signed in to change notification settings - Fork 268
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
改造成uni-app版本的小程序使用 #91
Comments
老哥。咋解决的啊。我马上也要在uni-app里用这个。 |
除了配置白名单,和图片地址必须是https格式外,我稍微改造了下代码, |
感谢老哥。🙏🙏🙏 |
推荐这个canvas库 easy-canvas |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好,我把这个改造成uni-app版本的,绘图成功了,但是会报Cannot read property 'xiaoying' of null,
saveImageToLocal () {
const width = this.width;
const height = this.height;
wx.canvasToTempFilePath({
x: 0,
y: 0,
width,
height,
canvasId: 'canvasdrawer',
complete: res => {
if (res.errMsg === 'canvasToTempFilePath:ok') {
The text was updated successfully, but these errors were encountered: