imageView= (ImageView) findViewById(R.id.iv);
try {
inputStream= getAssets().open("fengjing.jpg");assets 文件夹 要建在 app目录下。
} catch (IOException e) {
e.printStackTrace();
}
BitmapFactory.Options options=new BitmapFactory.Options();
options.inJustDecodeBounds=true;//不加载进内存 只获取图片信息。
BitmapFactory.decodeStream(inputStream
安卓开发截取图片指定位置显示
最新推荐文章于 2021-05-26 02:14:43 发布