如何修复放大尺寸的图像裁剪? [英] How to fix the zoom in size for image cropping?

查看:214
本文介绍了如何修复放大尺寸的图像裁剪?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要修复的放大尺寸的图像cropping.How做到这一点?我找到了很多,尝试了很多,但仍然没能得到正确的解决方案yet.cropped图像太多放大,缩小,越来越blurre.Please人帮我为我的这个issue.my code为。

  intent.putExtra(裁剪,真);
        intent.putExtra(outputX,300);
        intent.putExtra(outputY,300);
        intent.putExtra(aspectX,1);
        intent.putExtra(aspectY,1);
        intent.putExtra(规模化,假);
        intent.putExtra(回归数据,真正的);
 

解决方案

试试这样

  intent.putExtra(outputX,200); //设置这个定义输出位图的最大尺寸
intent.putExtra(outputY,200); //设置这个定义输出位图的最大尺寸
intent.putExtra(aspectX,1); //设置此定义形状的X-宽高比
intent.putExtra(aspectY,1); //设置这个定义形状的Y长宽比
 

检查

链接

I want to fix the zoom in size for image cropping.How to do this?I found a lot and tried a lot but still not able to get the right solution yet.cropped image too much zoomed and getting blurre.Please someone help me for my this issue.my code is.

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);

解决方案

Try like this

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

check this link

这篇关于如何修复放大尺寸的图像裁剪?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆