Java 如何确定图像裁剪的放大尺寸?
我想修正图像裁剪的放大尺寸。如何做?我发现了很多,尝试了很多,但仍然无法得到正确的解决方案。裁剪的图像放大太多,变得模糊。请有人帮助我解决这个问题。我的代码是Java 如何确定图像裁剪的放大尺寸?,java,android,android-intent,Java,Android,Android Intent,我想修正图像裁剪的放大尺寸。如何做?我发现了很多,尝试了很多,但仍然无法得到正确的解决方案。裁剪的图像放大太多,变得模糊。请有人帮助我解决这个问题。我的代码是 intent.putExtra("crop", "true"); intent.putExtra("outputX", 300); intent.putExtra("outputY", 300); intent.putExtra("aspectX", 1); intent.p
intent.putExtra("crop", "true");
intent.putExtra("outputX", 300);
intent.putExtra("outputY", 300);
intent.putExtra("aspectX", 1);
intent.putExtra("aspectY", 1);
intent.putExtra("scale", false);
intent.putExtra("return-data", true);
像这样试试
intent.putExtra("outputX", 200); //Set this to define the max size of the output bitmap
intent.putExtra("outputY", 200); //Set this to define the max size of the output bitmap
intent.putExtra("aspectX", 1); //Set this to define the X aspect ratio of the shape
intent.putExtra("aspectY", 1); //Set this to define the Y aspect ratio of the shape
检查此项我尝试过,但仍然无法解决问题。我想在放大时修复矩形大小。如何操作?