package o; import android.graphics.Bitmap; import android.graphics.BitmapShader; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.RectF; import android.graphics.Shader; import com.google.android.gms.maps.model.BitmapDescriptorFactory; /* renamed from: o.fLH, reason: case insensitive filesystem */ /* loaded from: classes5.dex */ public final class C12918fLH implements InterfaceC13024fOe { private final int b = 0; private final int c; private int d; private final int e; public C12918fLH(int i, int i2, int i3) { this.c = i; this.d = i2; this.e = i3; } @Override // o.InterfaceC13024fOe public final Bitmap aBE_(Bitmap bitmap) { Paint paint = new Paint(); paint.setAntiAlias(true); Shader.TileMode tileMode = Shader.TileMode.CLAMP; paint.setShader(new BitmapShader(bitmap, tileMode, tileMode)); int i = this.c << 1; Bitmap createBitmap = Bitmap.createBitmap(i, i, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(createBitmap); float f = i; RectF rectF = new RectF(BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, f, f); float f2 = this.c; canvas.drawRoundRect(rectF, f2, f2, paint); Paint paint2 = new Paint(); paint2.setColor(this.d); paint2.setStyle(Paint.Style.STROKE); paint2.setAntiAlias(true); paint2.setStrokeWidth(this.e); float f3 = this.c; canvas.drawCircle(f3, f3, f3 - (this.e / 2.0f), paint2); if (bitmap != createBitmap) { bitmap.recycle(); } return createBitmap; } @Override // o.InterfaceC13024fOe public final String d() { return "rounded"; } }