Android 获取图片分辨率
import java.io.File;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
Bitmap bitmap = BitmapFactory.decodeFile(imgFile.getPath());
int width = bitmap.getWidth();
int height = bitmap.getHeight();
Log.i(TAG, "checkIMG width: " + widt..
原创
2020-06-18 10:26:52 ·
1735 阅读 ·
0 评论