package bm;

import android.graphics.Bitmap;
import java.util.Map;
import yk.v;

/* loaded from: classes3.dex */
public class b {
    public Bitmap a(fl.b bVar) {
        int n10 = bVar.n();
        int j10 = bVar.j();
        int[] iArr = new int[n10 * j10];
        for (int i10 = 0; i10 < j10; i10++) {
            int i11 = i10 * n10;
            for (int i12 = 0; i12 < n10; i12++) {
                iArr[i11 + i12] = bVar.f(i12, i10) ? -16777216 : -1;
            }
        }
        Bitmap createBitmap = Bitmap.createBitmap(n10, j10, Bitmap.Config.ARGB_8888);
        createBitmap.setPixels(iArr, 0, n10, 0, 0, n10, j10);
        return createBitmap;
    }

    public fl.b b(String str, yk.a aVar, int i10, int i11, Map map) {
        try {
            return new yk.l().a(str, aVar, i10, i11, map);
        } catch (v e10) {
            throw e10;
        } catch (Exception e11) {
            throw new v(e11);
        }
    }

    public Bitmap c(String str, yk.a aVar, int i10, int i11, Map map) {
        return a(b(str, aVar, i10, i11, map));
    }
}
