Android com.Android.camera.action.CROP修复最小尺寸

Android com.Android.camera.action.CROP修复最小尺寸,android,image,android-intent,photo,crop,Android,Image,Android Intent,Photo,Crop,我需要裁剪图像,使其方正。我使用该功能: private void crop(Uri imageUri) { File photoGallery = new File(Environment.getExternalStorageDirectory(), "temp_image.jpg"); checkImageSize(photoGallery); Intent cropIntentGallery = new Intent("com.android.camera.acti

我需要裁剪图像,使其方正。我使用该功能:

private void crop(Uri imageUri) {
    File photoGallery = new File(Environment.getExternalStorageDirectory(), "temp_image.jpg");
    checkImageSize(photoGallery);
    Intent cropIntentGallery = new Intent("com.android.camera.action.CROP");
    cropIntentGallery.setDataAndType(imageUri, "image/*");
    cropIntentGallery.putExtra("crop", true);
    cropIntentGallery.putExtra("aspectX", 1);
    cropIntentGallery.putExtra("aspectY", 1);
    cropIntentGallery.putExtra("outputX", PHOTO_SIZE);
    cropIntentGallery.putExtra("outputY", PHOTO_SIZE);
    cropIntentGallery.putExtra(MediaStore.EXTRA_OUTPUT, Uri.fromFile(photoGallery));
    startActivityForResult(cropIntentGallery, REQ_EDIT_CAMERA);
}
它打开了作物活动,但我可以改变X和Y的大小。 我需要的是修复最小尺寸,所以若图像是在横向模式下制作的,用户将能够剪切左边缘或/和右边缘,若在纵向模式下,则可以剪切上边缘或/和下边缘。 是否有一些额外的参数来执行此操作


顺便说一句,我在哪里可以找到所有可能的额外目的清单?(比如:“aspectX”、“outputX”…)

Android没有
裁剪
意图:好的,但我还是会使用它。那么所有可能的额外功能列表呢?可能的额外功能有无限多。欢迎您对超过百万的Android应用程序进行迭代,并在枪口下迫使每个开发人员记录他们是否支持此
Intent
操作,如果他们支持,他们还支持哪些额外功能。而且,你需要不断地这样做,因为应用程序一直在变化。这将是耗时的,在许多司法管辖区是非法的,并且对您的健康有害。或者,你可以使用裁剪库,正如我在博客文章中指出的那样。谢谢,我将尝试使用该库,稍后将在这里写下我的结果。