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:
parent
056adc6451
commit
fa04c1b3c9
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user