How to fix the image scale to crop the image?

I want to fix the size scale for cropping an image. How to do it? I found a lot and tried a lot but still couldn't get the right solution. The frame-by-frame image is zoomed in too much and a blurre is produced. Help me in this matter. My code.

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

      

+1


source to share


1 answer


try it

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

0


source







All Articles