java - 如何在不由用户更改的情况下在 android 裁剪意图中指定高度/宽度?
问题描述
我将 outputX/outputY 更改为 100 x 和 y,然后更改为 1000/1000 x 和 y,但没有什么不同,只是分辨率改变了
Intent getImage = new Intent(Intent.ACTION_GET_CONTENT);
getImage.setType("image/png");
doesImageChosen = true;
getImage.putExtra("crop", true);
getImage.putExtra("aspectX", 1000);
getImage.putExtra("aspectY", 1000);
getImage.putExtra("scaleUpIfNeeded", true);
getImage.putExtra("outputX", 1000);
getImage.putExtra("scale", true);
getImage.putExtra("outputY", 1000);
解决方案
推荐阅读
- javascript - 如何使用脚本中的字符串触发引导模式?
- c# - 如何在 C# 中将 json 数据转换为对象?
- c++ - 无法访问嵌入到 Objective-C 项目中的 C++ 代码中的文件
- c# - WPF 如何使用 GridViewColumns(ListView 绑定)添加绑定到数组元素的列
- vba - 如何在 VBA 中创建一个函数以返回与记录集中每条记录的特定条件匹配的列名?
- angular - SVG animateTransform 不更新 from 和 to 值变化
- sql - BigQuery:将 mm/yyyy 日期与特定日期和 CURRENT_DATE 进行比较
- php - 将文件从一个 laravel 应用上传/存储到另一个 laravel 应用
- sql - 如何完全按照给定的图像排序行?
- java - 由 JButton 组成的 ArrayList。但没有按预期工作