Stack Overflow Asked by Iheb 404-NotFound on December 13, 2021
I wanted to rescale a bitmap
I tried a lot of functions to do it and no one worked with me because of color space ,
The error is "can’t create bitmap without color spacing"
I used the Bitmap.createScaledBitmap(params...)
And
Bitmap.createBitmap(Bitmap source, int width, int height, Matrix matrix, boolean filter)
Always same exception , i don’t know what to do with it
I get the same error for my custom view when I try to render it in Android Studio. The code however is working fine when run on the device itself.
Unfortunately ColorSpace
was added in API 26 and therefore I don't see any way of achieving this if the root of your problem is the same - which we don't know by the way.
Answered by Marcell on December 13, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP