what-the-bank/sources/io/beid/beidk/view/JHFaceMaskView.java

36 lines
1.1 KiB
Java

package io.beid.beidk.view;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.drawable.NinePatchDrawable;
import android.util.AttributeSet;
import o.fPZ;
import o.nMh;
/* loaded from: classes5.dex */
public class JHFaceMaskView extends a {
@Override // io.beid.beidk.view.a
protected final void aCB_(Canvas canvas) {
NinePatchDrawable ninePatchDrawable = (NinePatchDrawable) nMh.getDrawable(getContext(), fPZ.RVV.cameraframe);
RectF rectF = new RectF((this.b - this.e) - 10.0f, (this.a - this.e) - 10.0f, this.b + this.e + 10.0f, this.a + this.e + 10.0f);
Rect rect = new Rect();
rectF.roundOut(rect);
ninePatchDrawable.setBounds(rect);
ninePatchDrawable.draw(canvas);
}
public JHFaceMaskView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
public JHFaceMaskView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public JHFaceMaskView(Context context) {
super(context);
}
}