Native sdk function for scaling a bitmap?

Is there some kind of built-in SDK function for Android that takes the raster and required new raster sizes and then returns a scaled bitmap?

+3
source share
2 answers

You can take a look at: Bitmap.createScaledBitmap()

+9
source

Bitmap.createScaledBitmap () corrupts the image. I think it changes the encoding to RGB_565, which means that the resulting bitmap is useless junk.

0
source

Source: https://habr.com/ru/post/1730270/


All Articles