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

在mix混合绘制下,我想给绘制的图片加一个边框,怎么利用updateOption加不上去 #87

Open
gxlself opened this issue Oct 5, 2018 · 0 comments

Comments

@gxlself
Copy link

gxlself commented Oct 5, 2018

wx.getImageInfo({
src: defaultChooseImage,
success: res=>{
let defaultPaintHeaderImage = new Shape('image', { x: 150, y: 150,w:100,h:100, file: res.path, isLineDash: true, lineWidth: 2, strokeStyle: "#ffffff"}, 'mix', true);
that.wxCanvas.add(defaultPaintHeaderImage);
defaultPaintHeaderImage.updateOption({needShadow:true,shadow:{offsetX:5,offsetY:5,blur:5,color:"#ffffff"}});
}
})

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

1 participant