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

14/5000 Modify the width of the brush and the display brush size #929

Open
whomeet opened this issue Aug 5, 2024 · 0 comments
Open

14/5000 Modify the width of the brush and the display brush size #929

whomeet opened this issue Aug 5, 2024 · 0 comments
Labels

Comments

@whomeet
Copy link

whomeet commented Aug 5, 2024

1、You can define that the color and width of the brush do not take effect by setting the color and width properties of the paint object
paint: {
color: '#ffffff', // 这里设置你想要的默认画笔颜色
width: 100, // 画笔宽度
}

2、imageEditor.startDrawingMode('FREE_DRAWING');
imageEditor.setBrush({
width: 12,
color: 'rgba(0, 0, 0, 0.5)'
});

Neither approach works, so what went wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant