04-06-2005, 12:08 AM
Hey, I need help with this. I didn't know whether to set this here or Programming help, but here it is.
It's my attempt at a .bmp loader, but the colors don't work! Try it out.
But first, make a .bmp (256, if you please) that's 320x200. save it as "pic.bmp".
Then try this code:
The color should be VERY wrong. Help?
It's my attempt at a .bmp loader, but the colors don't work! Try it out.
But first, make a .bmp (256, if you please) that's 320x200. save it as "pic.bmp".
Then try this code:
Code:
SCREEN 13
OPEN "PIC.BMP" FOR BINARY AS #1
C = 1: D = 1
FOR I! = 1 TO LOF(1)
GET #1, I!, A%
PSET (C, D), A%
C = C + 1
IF C > 320 THEN C = 1: D = D + 1
NEXT I!
The color should be VERY wrong. Help?