我使用以下代码裁剪拍摄的图像。我的问题是 1)我如何获得高质量的输出(分辨率不应该看起来很尴尬) 2)用户如何放大或缩小图像。在当前状态下,用户可以放大,但可以从图像填满屏幕的限制中缩小。 请建议任何解决方案。 感谢
代码:
Intent cropIntent = new Intent("com.android.camera.action.CROP");
cropIntent.setDataAndType(picUri, "image/*");
cropIntent.putExtra("crop", "true");
cropIntent.putExtra("aspectX", 1);
cropIntent.putExtra("aspectY", 1);
cropIntent.putExtra("outputX", 256);
cropIntent.putExtra("outputY", 256);
cropIntent.putExtra("return-data", true);
startActivityForResult(cropIntent, PIC_CROP);