Hello Guys i trying to resize a bitmap using the comand Bitmap.CreateScaleBitmap but that comand create an new image at the my dispositivo. i need in one solution for resize not create one new image.
my code:
if(requestCode ==0){
            Bitmap bitmap = null;
            try {
                uri_image_boi=data.getData();
                bitmap=MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(),uri_image_boi);
                Bitmap resizedBitmap = Bitmap.createScaledBitmap(bitmap,600,400,false);
                image_boi.setImageDrawable(new BitmapDrawable(resizedBitmap));
                botao_adicionar_foto.setAlpha(0);
                resize= getImageUri(this,resizedBitmap);
            } catch (Exception e) {
            }
        }
    }
