AvatarWithRoundedCorner not transparent
thhet opened this issue · 3 comments
thhet commented
JimBobSquarePants commented
I’m assuming from the output these images are jpegs?
If so, that’s expected as jpegs do not contain an alpha channel.
thhet commented
Input image is a png. But your comment has led me to a solution: When I serialize the selected image into a memory stream using a PngEncoder with ColorType = PngColorType.RgbWithAlpha, load the image from this stream and than apply rounded corners everything works as expected.
Thanks for your reply!
JimBobSquarePants commented
Excellent! Glad you worked it out 👍