Android - how to compress or downsize an image?

前端 未结 3 1016
攒了一身酷
攒了一身酷 2021-01-14 01:03
ImageButton avatarButton = (ImageButton) findViewById(R.id.ImageButton_Avatar);
avatarButton.setImageResource(R.drawable.avatar);
strAvatarFilename =  \"Image.jpg\";         


        
3条回答
  •  死守一世寂寞
    2021-01-14 01:28

    The Android Library SiliCompressor provide this functionality for you to compress your images while keeping the image quality.

提交回复
热议问题