1
0
mirror of https://github.com/wasabeef/glide-transformations.git synced 2025-06-07 14:54:05 +08:00

fixed drawDiagonalFromTopLeftRoundRect (#178)

This commit is contained in:
bigeye-wg 2020-09-15 01:45:35 +08:00 committed by GitHub
parent 056adc6451
commit fa04c1b3c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -222,8 +222,8 @@ public class RoundedCornersTransformation extends BitmapTransformation {
radius, paint);
canvas.drawRoundRect(new RectF(right - diameter, bottom - diameter, right, bottom), radius,
radius, paint);
canvas.drawRect(new RectF(margin, margin + radius, right - diameter, bottom), paint);
canvas.drawRect(new RectF(margin + diameter, margin, right, bottom - radius), paint);
canvas.drawRect(new RectF(margin, margin + radius, right - radius, bottom), paint);
canvas.drawRect(new RectF(margin + radius, margin, right, bottom - radius), paint);
}
private void drawDiagonalFromTopRightRoundRect(Canvas canvas, Paint paint, float right,