03-09-2023, 10:59 AM
Actually
The problem is with
So, basically, we are trying to blit a 32bpp image to an 8bpp surface. This will not work.
If we really want 256 color images, then we could change the _LoadImage line as:
_LOADIMAGE - QB64 Phoenix Edition Wiki
Screen _NewImage(1000, 800, 256)does work.
The problem is with
im(1) = _LoadImage("RecPics/" + Chr$(65) + ".jpg").
So, basically, we are trying to blit a 32bpp image to an 8bpp surface. This will not work.
If we really want 256 color images, then we could change the _LoadImage line as:
im(1) = _LoadImage("RecPics/" + Chr$(65) + ".jpg", 256) ' this forces the image to be loaded as 8bpp
_LOADIMAGE - QB64 Phoenix Edition Wiki