Thank you, sorry I did not explain myself well, I have a large panel from which I take two bitmaps, save them as (jpg, png) and I want to join them and save it again with the same format (jpg, png)
On some devices (low range) I have this error. java.lang.OutOfMemoryError: Failed to allocate a 182088012 byte allocation with 4194304 free bytes and 64MB until OOM at dalvik.system.VMRuntime.newNonMovableArray(Native Method) at android.graphics.Bitmap.nativeCreate(Native Method)...
Thank you, sorry I did not explain myself well, I have a large panel from which I take two bitmaps, save them as (jpg, png) and I want to join them and save it again with the same format (jpg, png)
I think that Erel is suggesting that you draw the two bitmaps on a panel using B4XCanvas, and then use B4XCanvas.CreateBitmap to create a combined bitmap. If you do not want the panel to be visible then move it off-screen.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.