【发布时间】:2013-08-02 09:29:56
【问题描述】:
我在使用相机拍照后使用 com.android.camera.action.CROP 进行裁剪。
以下是我在 4.3 之前使用的代码。
Intent cropIntent = new Intent("com.android.camera.action.CROP");
cropIntent.setType("image/*");
cropIntent.putExtra("crop", "true");
cropIntent.putExtra("aspectX", 1);
cropIntent.putExtra("aspectY", 1);
cropIntent.putExtra("outputX", Conf.getInt("IMAGE_WIDTH"));
cropIntent.putExtra("outputY", Conf.getInt("IMAGE_HEIGHT"));
cropIntent.putExtras(extras);
startActivityForResult(cropIntent, CROP_REQUEST_CODE);
但是现在由于 android 裁剪操作会将您带到图库(因为图库默认使用裁剪),因此此裁剪方法失败(照片未保存到图库)。
有没有人知道解决这个问题的方法。我可以在哪里使用从相机拍摄的照片上的裁剪
【问题讨论】:
-
裁剪方法-你可以看这里->stackoverflow.com/questions/17930577/…