Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/335.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何确定图像裁剪的放大尺寸?_Java_Android_Android Intent - Fatal编程技术网

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

检查此项

我尝试过,但仍然无法解决问题。我想在放大时修复矩形大小。如何操作?