wasabeef / glide-transformations

An Android transformation library providing a variety of image transformations for Glide.
Apache License 2.0
9.9k stars 1.41k forks source link

RoundedCornersTransformation has some problem to handle a translucent picture #170

Open RomanticHua opened 4 years ago

RomanticHua commented 4 years ago

this is my code

int dp10 = DisplayUtils.dp2px(10); RoundedCornersTransformation transformation = new RoundedCornersTransformation(dp10, 0, RoundedCornersTransformation.CornerType.TOP_RIGHT); Glide.with(this).load(R.mipmap.ic_pic_close) .apply(RequestOptions.bitmapTransform(transformation)) .into(iv);

my glide version is 4.9.0 , and my glide_transformations version is 4.1.0

my original picture is translucent.

ic_pic_close

it's show in phone like this image

i don't know why top-right corner has a shadow.