【发布时间】:2017-05-24 09:57:02
【问题描述】:
通常 com.android.camera.action.CROP 会显示设备的裁剪动作,我已经尝试过,但它需要指定的输出大小。有没有像IsseiAoki/SimpleCropView 或steelkiwi/cropiwa 等指定输出大小的最简单方法来执行裁剪操作?
Intent cropIntent = new Intent("com.android.camera.action.CROP");
cropIntent.setDataAndType(picUri, "image/*");
cropIntent.putExtra("crop", "true");
cropIntent.putExtra("outputX", 360);
cropIntent.putExtra("outputY", 360);
cropIntent.putExtra("return-data", true);
startActivityForResult(cropIntent, PIC_CROP);
【问题讨论】: