angel_ Well-Known Member Licensed User Longtime User Aug 23, 2021 #1 It is possible to join two bitmaps into one, for example 2 of 600x200 create a single 600x400 bitmap
Erel B4X founder Staff member Licensed User Longtime User Aug 23, 2021 #2 Yes. It can be done quite easily with B4XCanvas. Create a panel, initialize B4XCanvas and draw the two bitmaps. Upvote 0
Yes. It can be done quite easily with B4XCanvas. Create a panel, initialize B4XCanvas and draw the two bitmaps.
angel_ Well-Known Member Licensed User Longtime User Aug 23, 2021 #3 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) It is relative to this problem: [Solved] OutOfMemoryError with canvas 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)... www.b4x.com Upvote 0
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) It is relative to this problem: [Solved] OutOfMemoryError with canvas 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)... www.b4x.com
DonManfred Expert Licensed User Longtime User Aug 23, 2021 #4 angel_ said: It is relative to this problem: Click to expand... you get an OOM Error? Best is to create a small project showing the issue and upload it. Upvote 0
angel_ said: It is relative to this problem: Click to expand... you get an OOM Error? Best is to create a small project showing the issue and upload it.
B Brian Dean Well-Known Member Licensed User Longtime User Aug 23, 2021 #5 It is possible to join two bitmaps into one, for example 2 of 600x200 create a single 600x400 bitmap Click to expand... 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) Click to expand... 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. Upvote 0
It is possible to join two bitmaps into one, for example 2 of 600x200 create a single 600x400 bitmap Click to expand... 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) Click to expand... 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.