package ⁱ.K.K.K.ῲ.K;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;

/* renamed from: ⁱ.K.K.K.ῲ.K.K  reason: contains not printable characters */
/* compiled from: FastBitmapDrawable */
public class C2353 extends Drawable implements AbstractC2352 {

    /* renamed from: ʬ  reason: contains not printable characters */
    public Paint f8164;

    /* renamed from: ඓ  reason: contains not printable characters */
    public int f8165;

    /* renamed from: ῲ  reason: contains not printable characters */
    public Bitmap f8166;

    /* renamed from: 㸾  reason: contains not printable characters */
    public int f8167;

    public C2353(Bitmap bitmap) {
        this.f8166 = bitmap;
        Bitmap bitmap2 = this.f8166;
        if (bitmap2 != null) {
            this.f8167 = bitmap2.getWidth();
            this.f8165 = this.f8166.getHeight();
        } else {
            this.f8167 = 0;
            this.f8165 = 0;
        }
        this.f8164 = new Paint();
        this.f8164.setDither(true);
        this.f8164.setFilterBitmap(true);
    }

    public void draw(Canvas canvas) {
        Bitmap bitmap = this.f8166;
        if (bitmap != null && !bitmap.isRecycled()) {
            canvas.drawBitmap(this.f8166, 0.0f, 0.0f, this.f8164);
        }
    }

    public int getIntrinsicHeight() {
        return this.f8165;
    }

    public int getIntrinsicWidth() {
        return this.f8167;
    }

    public int getMinimumHeight() {
        return this.f8165;
    }

    public int getMinimumWidth() {
        return this.f8167;
    }

    public int getOpacity() {
        return -3;
    }

    public void setAlpha(int i) {
        this.f8164.setAlpha(i);
    }

    public void setColorFilter(ColorFilter colorFilter) {
        this.f8164.setColorFilter(colorFilter);
    }
}
