package com.sagereal.print.util;

import android.graphics.Bitmap;
import android.graphics.Matrix;
import android.net.Uri;

/* JADX INFO: loaded from: classes.dex */
public class BitmapUtils {
    private static final Uri imageUri = Uri.parse("file:///sdcard/test.bmp");

    public static Bitmap zoomImg(Bitmap bitmap, int i, int i2) {
        int width = bitmap.getWidth();
        int height = bitmap.getHeight();
        Matrix matrix = new Matrix();
        matrix.postScale(i / width, i2 / height);
        return Bitmap.createBitmap(bitmap, 0, 0, width, height, matrix, true);
    }
}