- Dec 12, 2022
- 357
- 2
Hi all,
in one of my libraries I wrote I've this line:
B4X:
... 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...
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...
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید