【发布时间】:2014-07-15 02:11:45
【问题描述】:
是否可以从 URI 中获取图像文件的宽度和高度。我试图使用此代码,但他们的错误: getAbsolutePath() 后出现语法错误
标记“)”上的语法错误,ArgumentList 无效
private void getDropboxIMGSize(Uri uri){
BitmapFactory.Options options = new BitmapFactory.Options();
options.inJustDecodeBounds = true;
BitmapFactory.decodeFile(uri.getPath()).getAbsolutePath(), options);
int imageHeight = options.outHeight;
int imageWidth = options.outWidth;
}
【问题讨论】:
-
getAbsolutePath() 后的语法错误......令牌“)”上的语法错误,ArgumentList 无效......
-
你错过了(在uri.getPath()之前
标签: android