1. QBASIC BLoad

Hello all,

Jeff Zeitlin wrote :-
> Also, is anyone familiar with the GWBASIC/QBASIC BSAVE format?
> Support for that picture format would be a nice thing to have.

I did a lot of work with this format some time ago, the first 7 bytes are=

the header :-
        Offset  Task    Normal value to/from screen memory
        0       ?       FD
        1 ~ 2   Segment A000 =3D Screen segment
        3 ~ 4   Offset  0000 =3D Start of screen
        5 ~ 6   Length  FA00 =3D 64,000

After that comes the image data which is structured depending on the scre=
en
mode :-
QB Screen (VGA) Euphoria                Structure
13              19              64000 bytes @ 320 X 200 , 1 pixel per byt=
e
12              18              38400 bytes x 4 planes @ 640 x 480 , 8
pixels per byte
11              17              38400 bytes @ 640 x 480 , 8 pixels per by=
te

To load a SCREEN 13 or 11  BLOADed image all you have to do is skip past
the header, read the image data into a buffer and copy it onto the screen=
=2E
To load a SCREEN 12 image is tricky, I posted details in one of my earlie=
r
messages.

I hope this helps - Peter

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu