开发者

A native sdk function to scale Bitmap?

开发者 https://www.devze.com 2022-12-18 11:05 出处:网络
Is there some nativ开发者_运维百科e android SDK function which takes bitmap and desired new bitmap dimensions and then returns scaled bitmap?You might take a look at: Bitmap.createScaledBitmap()Bitmap

Is there some nativ开发者_运维百科e android SDK function which takes bitmap and desired new bitmap dimensions and then returns scaled bitmap?


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号