com.android.camera.action.CROP

Intent intent = new Intent("com.android.camera.action.CROP");
String path = "/storage/emulated/0/Pictures/Screenshots/img_test.png";
Uri uri = Uri.parse("file://"+ path);
intent.setDataAndType(uri, "image/*");
intent.putExtra("crop", "true");
intent.putExtra("outputX", 80);
intent.putExtra("outputY", 80);
intent.putExtra("return-data", false);
context.startActivityForResult(intent, 1);



你可能感兴趣的:(com.android.camera.action.CROP)