fresco icon indicating copy to clipboard operation
fresco copied to clipboard

The rounded border don't display outside the image.

Open MarkMjw opened this issue 11 years ago • 2 comments

my code: 5

the result: 6

but i want: 4

MarkMjw avatar Jun 04 '15 15:06 MarkMjw

This is by design. First the image gets rounded, and then the border gets drawn on top of it. The border is centered on the edge of the rounded image, meaning that half of its width gets drawn outside of the image, half of it inside the image. Furthermore, your border color has alpha set to 0x40 which makes it semi-transparent. That's why you see the image underneath the inner part of the border. It also seems that you are using a wrong scale type as the bottom image looks smaller, so check that out too.

plamenko avatar Jun 04 '15 16:06 plamenko

OK,thanks.

MarkMjw avatar Jun 05 '15 01:06 MarkMjw