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

Is that possible for cutting a rectangle pic as rounded ? #156

Open
hsqlu opened this issue Nov 8, 2019 · 1 comment
Open

Is that possible for cutting a rectangle pic as rounded ? #156

hsqlu opened this issue Nov 8, 2019 · 1 comment

Comments

@hsqlu
Copy link

hsqlu commented Nov 8, 2019

Given a rectangle, can I cut it to a rounded rectangle by using draw2d?

@llgcode
Copy link
Owner

llgcode commented Nov 8, 2019

Clipping is not implemented in draw2d but you can use a mask:
https://blog.golang.org/go-imagedraw-package

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

2 participants