"Border radius" CSS like processing in Rust?

I really like the image crate for all my image processing needs, but this seems to stand out as something that is missing from the crate.

Has someone tried to do an implementation in Rust already (as to not reinvent the wheel)?

If you're looking for a rectangle with rounded corners, embedded-graphics implements that here: RoundedRectangle in embedded_graphics::primitives::rounded_rectangle - Rust

Almost!

Looking for that, but then the shape is applied to an image (as in, it rounds the corners of the image). Guess I'll see if I can come up with something based on that code.

Thanks first. Now the request...

So if you "come up with something" maybe you can supply it into the image crate?

Heh, sure thing!

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.