How to reduce image programmatically in Android?

后端 未结 1 345
傲寒
傲寒 2021-01-07 15:51

I am programmatically taking screenshot of the screen in my android app using the following code. It is working fine. The problem I see is, it is taking screenshot of the en

1条回答
  •  臣服心动
    2021-01-07 16:07

    Try this:

    Bitmap resizedImage = Bitmap.createScaledBitmap(old_bitmap,desiredimageWidth,desiredimageHeight, true);
    

    0 讨论(0)
提交回复
热议问题