So frustrating!
#6
Actually
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
Reply


Messages In This Thread
So frustrating! - by PhilOfPerth - 03-09-2023, 07:30 AM
RE: So frustrating! - by bplus - 03-09-2023, 07:56 AM
RE: So frustrating! - by PhilOfPerth - 03-09-2023, 08:27 AM
RE: So frustrating! - by bplus - 03-09-2023, 08:32 AM
RE: So frustrating! - by mnrvovrfc - 03-09-2023, 10:45 AM
RE: So frustrating! - by a740g - 03-09-2023, 10:59 AM
RE: So frustrating! - by PhilOfPerth - 03-09-2023, 10:36 PM
RE: So frustrating! - by mnrvovrfc - 03-10-2023, 06:48 AM
RE: So frustrating! - by bplus - 03-09-2023, 11:21 PM
RE: So frustrating! - by PhilOfPerth - 03-10-2023, 04:21 AM
RE: So frustrating! - by bplus - 03-10-2023, 05:35 AM
RE: So frustrating! - by PhilOfPerth - 03-10-2023, 06:26 AM
RE: So frustrating! - by PhilOfPerth - 03-10-2023, 10:10 AM



Users browsing this thread: 1 Guest(s)