I'm trying to draw a rounded rectangle with transparency with the library Skia
.
I get a perfect result if i'm using overlapping without transparency.
But when i'm using transparency, i get this:
That's what i get when i do not overlap:
Even if i modify the radius of the inner rectancle, there're still some overlaps/gabs.
My questitons:
- What is the correct way to caluclate the radius of the inner rectangle, when i can accept some missplaced pixels?
- Is there another way?