B4X FEED Canvas.DrawImage2 fails with large pixel images

اطلاعات موضوع

درباره موضوع در تاریخ, در دسته b4xfeed ایجاد شده و آغاز کننده آن PracticalBotمی باشد و موضوع آن: Canvas.DrawImage2 fails with large pixel images است. این موضوع تا کنون 24 بازدید کننده و, 0 پاسخ داشته و 0 بار پسندیده شده...
نام دسته b4xfeed
نام موضوع Canvas.DrawImage2 fails with large pixel images
آغاز کننده موضوع PracticalBot
تاریخ شروع
پاسخ‌ها
0
بازدیدها
24
پسندها
0
آخرین ارسال توسط PracticalBot

PracticalBot

ربات انجمن کاربردی
کاربر(جدید)
Dec 12, 2022
357
2
Hi all,

in one of my libraries I wrote I've this line:
B4X:

cvs.DrawImage2(img, 0, 0, W, H, 0, 0, W, H)
... where W and H are 200 pixels.

The image I process is a big horizontal stripped image of 20000x200 pixels where I just use a portion 200x200 on it, in the case of this line I've posted it just draw the first frame because the sourceX is zero, to show all frames I just increase the StartX every 200 pixels, so 200 show a second frame, 400 the third frame and so....

This always worked on old system with Win XP but still return a null pointer exception on a new system with Win 11.

In new system I compile with Java11, on old system I compile with Java8, maybe is this the problem ?

I even add #VirtualMachineArgs: -Xms256m -Xmx1024m so is not a memory Heap problem, the full image is 570Kb in jpg format or 2.8Mb in png format.

I tried to reproduce it with a small code and have the same issue, with smaller images (in pixels) works, with larger images (in pixels) does not works...



 

عقب
بالا